aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llchatbar.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-10-16 16:39:44 -0700
committerMcCabe Maxsted2009-10-16 16:39:44 -0700
commitce82adec2a0124fe27f363653d2652b0f5c61f04 (patch)
tree35b3877b1d1fc92329a44a9a17d183b74b92890b /linden/indra/newview/llchatbar.cpp
parentApplied patch for VWR-6787 by Alissa Sabre - 'none' text in group window not ... (diff)
downloadmeta-impy-ce82adec2a0124fe27f363653d2652b0f5c61f04.zip
meta-impy-ce82adec2a0124fe27f363653d2652b0f5c61f04.tar.gz
meta-impy-ce82adec2a0124fe27f363653d2652b0f5c61f04.tar.bz2
meta-impy-ce82adec2a0124fe27f363653d2652b0f5c61f04.tar.xz
Applied RLVa-1.0.4e_20091010_SL-1.22.11-diff.patch
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llchatbar.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp
index 608fb54..710677a 100644
--- a/linden/indra/newview/llchatbar.cpp
+++ b/linden/indra/newview/llchatbar.cpp
@@ -634,11 +634,11 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL
634 if ( (0 == channel) && (rlv_handler_t::isEnabled()) ) 634 if ( (0 == channel) && (rlv_handler_t::isEnabled()) )
635 { 635 {
636 // Adjust the (public) chat "volume" on chat and gestures (also takes care of playing the proper animation) 636 // Adjust the (public) chat "volume" on chat and gestures (also takes care of playing the proper animation)
637 if ( ((CHAT_TYPE_SHOUT == type) || (CHAT_TYPE_NORMAL == type)) && (gRlvHandler.hasBehaviour("chatnormal")) ) 637 if ( ((CHAT_TYPE_SHOUT == type) || (CHAT_TYPE_NORMAL == type)) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATNORMAL)) )
638 type = CHAT_TYPE_WHISPER; 638 type = CHAT_TYPE_WHISPER;
639 else if ( (CHAT_TYPE_SHOUT == type) && (gRlvHandler.hasBehaviour("chatshout")) ) 639 else if ( (CHAT_TYPE_SHOUT == type) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATSHOUT)) )
640 type = CHAT_TYPE_NORMAL; 640 type = CHAT_TYPE_NORMAL;
641 else if ( (CHAT_TYPE_WHISPER == type) && (gRlvHandler.hasBehaviour("chatwhisper")) ) 641 else if ( (CHAT_TYPE_WHISPER == type) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATWHISPER)) )
642 type = CHAT_TYPE_NORMAL; 642 type = CHAT_TYPE_NORMAL;
643 643
644 animate &= !gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT); 644 animate &= !gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT);
@@ -692,11 +692,11 @@ void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channe
692 if (0 == channel) 692 if (0 == channel)
693 { 693 {
694 // (We already did this before, but LLChatHandler::handle() calls this directly) 694 // (We already did this before, but LLChatHandler::handle() calls this directly)
695 if ( ((CHAT_TYPE_SHOUT == type) || (CHAT_TYPE_NORMAL == type)) && (gRlvHandler.hasBehaviour("chatnormal")) ) 695 if ( ((CHAT_TYPE_SHOUT == type) || (CHAT_TYPE_NORMAL == type)) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATNORMAL)) )
696 type = CHAT_TYPE_WHISPER; 696 type = CHAT_TYPE_WHISPER;
697 else if ( (CHAT_TYPE_SHOUT == type) && (gRlvHandler.hasBehaviour("chatshout")) ) 697 else if ( (CHAT_TYPE_SHOUT == type) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATSHOUT)) )
698 type = CHAT_TYPE_NORMAL; 698 type = CHAT_TYPE_NORMAL;
699 else if ( (CHAT_TYPE_WHISPER == type) && (gRlvHandler.hasBehaviour("chatwhisper")) ) 699 else if ( (CHAT_TYPE_WHISPER == type) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATWHISPER)) )
700 type = CHAT_TYPE_NORMAL; 700 type = CHAT_TYPE_NORMAL;
701 701
702 // Redirect chat if needed 702 // Redirect chat if needed
@@ -707,20 +707,20 @@ void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channe
707 } 707 }
708 708
709 // Filter public chat if sendchat restricted (and filter anything that redirchat didn't redirect) 709 // Filter public chat if sendchat restricted (and filter anything that redirchat didn't redirect)
710 if ( (gRlvHandler.hasBehaviour("sendchat")) || (gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT)) ) 710 if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHAT)) || (gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT)) )
711 gRlvHandler.filterChat(utf8_out_text, true); 711 gRlvHandler.filterChat(utf8_out_text, true);
712 } 712 }
713 else 713 else
714 { 714 {
715 // Don't allow chat on a non-public channel if sendchannel restricted (unless the channel is an exception) 715 // Don't allow chat on a non-public channel if sendchannel restricted (unless the channel is an exception)
716 if ( (gRlvHandler.hasBehaviour("sendchannel")) && (!gRlvHandler.hasBehaviour("sendchannel", llformat("%d", channel))) ) 716 if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHANNEL)) && (!gRlvHandler.isException(RLV_BHVR_SENDCHANNEL, channel)) )
717 return; 717 return;
718 718
719 // Don't allow chat on debug channel if @sendchat, @redirchat or @rediremote restricted (shows as public chat on viewers) 719 // Don't allow chat on debug channel if @sendchat, @redirchat or @rediremote restricted (shows as public chat on viewers)
720 if (channel >= CHAT_CHANNEL_DEBUG) 720 if (channel >= CHAT_CHANNEL_DEBUG)
721 { 721 {
722 bool fIsEmote = rlvIsEmote(utf8_out_text); 722 bool fIsEmote = rlvIsEmote(utf8_out_text);
723 if ( (gRlvHandler.hasBehaviour("sendchat")) || 723 if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHAT)) ||
724 ((!fIsEmote) && (gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT))) || 724 ((!fIsEmote) && (gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT))) ||
725 ((fIsEmote) && (gRlvHandler.hasBehaviour(RLV_BHVR_REDIREMOTE))) ) 725 ((fIsEmote) && (gRlvHandler.hasBehaviour(RLV_BHVR_REDIREMOTE))) )
726 { 726 {