diff options
author | McCabe Maxsted | 2010-10-09 03:27:47 -0700 |
---|---|---|
committer | McCabe Maxsted | 2010-10-09 03:27:47 -0700 |
commit | 1866bc2af39189c17b636970d4df7edc983c1830 (patch) | |
tree | e60963a49832280cf3d2d9b5a8b589853469caee /linden/indra/newview/llchatbar.cpp | |
parent | Use all those cores for compile (diff) | |
download | meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.zip meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.tar.gz meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.tar.bz2 meta-impy-1866bc2af39189c17b636970d4df7edc983c1830.tar.xz |
Applied RLVa-1.1.2-Imprudence.patch by Kitty Barnett
Diffstat (limited to 'linden/indra/newview/llchatbar.cpp')
-rw-r--r-- | linden/indra/newview/llchatbar.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/linden/indra/newview/llchatbar.cpp b/linden/indra/newview/llchatbar.cpp index a22fd8f..19ac2ab 100644 --- a/linden/indra/newview/llchatbar.cpp +++ b/linden/indra/newview/llchatbar.cpp | |||
@@ -88,6 +88,9 @@ void toggleChatHistory(void* user_data); | |||
88 | void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channel); | 88 | void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channel); |
89 | // [/RLVa:KB] | 89 | // [/RLVa:KB] |
90 | 90 | ||
91 | // [RLVa:KB] | ||
92 | #include "rlvhandler.h" | ||
93 | // [/RLVa:KB] | ||
91 | 94 | ||
92 | class LLChatBarGestureObserver : public LLGestureManagerObserver | 95 | class LLChatBarGestureObserver : public LLGestureManagerObserver |
93 | { | 96 | { |
@@ -788,7 +791,7 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL | |||
788 | utf8_text = utf8str_truncate(utf8_text, MAX_STRING - 1); | 791 | utf8_text = utf8str_truncate(utf8_text, MAX_STRING - 1); |
789 | } | 792 | } |
790 | 793 | ||
791 | // [RLVa:KB] - Checked: 2009-07-07 (RLVa-1.0.0d) | Modified: RLVa-0.2.0b | 794 | // [RLVa:KB] - Checked: 2010-03-27 (RLVa-1.1.1a) | Modified: RLVa-1.2.0b |
792 | if ( (0 == channel) && (rlv_handler_t::isEnabled()) ) | 795 | if ( (0 == channel) && (rlv_handler_t::isEnabled()) ) |
793 | { | 796 | { |
794 | // Adjust the (public) chat "volume" on chat and gestures (also takes care of playing the proper animation) | 797 | // Adjust the (public) chat "volume" on chat and gestures (also takes care of playing the proper animation) |
@@ -799,7 +802,7 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL | |||
799 | else if ( (CHAT_TYPE_WHISPER == type) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATWHISPER)) ) | 802 | else if ( (CHAT_TYPE_WHISPER == type) && (gRlvHandler.hasBehaviour(RLV_BHVR_CHATWHISPER)) ) |
800 | type = CHAT_TYPE_NORMAL; | 803 | type = CHAT_TYPE_NORMAL; |
801 | 804 | ||
802 | animate &= !gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT); | 805 | animate &= !gRlvHandler.hasBehaviour( (!rlvIsEmote(utf8_text)) ? RLV_BHVR_REDIRCHAT : RLV_BHVR_REDIREMOTE ); |
803 | } | 806 | } |
804 | // [/RLVa:KB] | 807 | // [/RLVa:KB] |
805 | 808 | ||
@@ -843,7 +846,7 @@ void LLChatBar::sendChatFromViewer(const LLWString &wtext, EChatType type, BOOL | |||
843 | void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channel) | 846 | void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channel) |
844 | // [/RLVa:KB] | 847 | // [/RLVa:KB] |
845 | { | 848 | { |
846 | // [RLVa:KB] - Checked: 2009-08-05 (RLVa-1.0.1e) | Modified: RLVa-1.0.1e | 849 | // [RLVa:KB] - Checked: 2010-02-27 (RLVa-1.1.1a) | Modified: RLVa-1.2.0a |
847 | // Only process chat messages (ie not CHAT_TYPE_START, CHAT_TYPE_STOP, etc) | 850 | // Only process chat messages (ie not CHAT_TYPE_START, CHAT_TYPE_STOP, etc) |
848 | if ( (rlv_handler_t::isEnabled()) && ( (CHAT_TYPE_WHISPER == type) || (CHAT_TYPE_NORMAL == type) || (CHAT_TYPE_SHOUT == type) ) ) | 851 | if ( (rlv_handler_t::isEnabled()) && ( (CHAT_TYPE_WHISPER == type) || (CHAT_TYPE_NORMAL == type) || (CHAT_TYPE_SHOUT == type) ) ) |
849 | { | 852 | { |
@@ -864,8 +867,8 @@ void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channe | |||
864 | return; | 867 | return; |
865 | } | 868 | } |
866 | 869 | ||
867 | // Filter public chat if sendchat restricted (and filter anything that redirchat didn't redirect) | 870 | // Filter public chat if sendchat restricted |
868 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHAT)) || (gRlvHandler.hasBehaviour(RLV_BHVR_REDIRCHAT)) ) | 871 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHAT)) |
869 | gRlvHandler.filterChat(utf8_out_text, true); | 872 | gRlvHandler.filterChat(utf8_out_text, true); |
870 | } | 873 | } |
871 | else | 874 | else |
@@ -875,7 +878,7 @@ void send_chat_from_viewer(std::string utf8_out_text, EChatType type, S32 channe | |||
875 | return; | 878 | return; |
876 | 879 | ||
877 | // Don't allow chat on debug channel if @sendchat, @redirchat or @rediremote restricted (shows as public chat on viewers) | 880 | // Don't allow chat on debug channel if @sendchat, @redirchat or @rediremote restricted (shows as public chat on viewers) |
878 | if (channel >= CHAT_CHANNEL_DEBUG) | 881 | if (CHAT_CHANNEL_DEBUG == channel) |
879 | { | 882 | { |
880 | bool fIsEmote = rlvIsEmote(utf8_out_text); | 883 | bool fIsEmote = rlvIsEmote(utf8_out_text); |
881 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHAT)) || | 884 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SENDCHAT)) || |