diff options
author | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
---|---|---|
committer | McCabe Maxsted | 2009-09-14 17:52:41 -0700 |
commit | 7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd (patch) | |
tree | 0243666021de3ae6ac61a6c6f4e57d42771fe964 /linden/indra/newview/llfloaterchat.cpp | |
parent | Applied BlockClickSit debug setting from Emerald to block sit click action (diff) | |
download | meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.zip meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.gz meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.bz2 meta-impy-7f090f7bec5264ca9e203c27dfb6b2992bb2bcbd.tar.xz |
Merged in jacek/next
Diffstat (limited to 'linden/indra/newview/llfloaterchat.cpp')
-rw-r--r-- | linden/indra/newview/llfloaterchat.cpp | 59 |
1 files changed, 57 insertions, 2 deletions
diff --git a/linden/indra/newview/llfloaterchat.cpp b/linden/indra/newview/llfloaterchat.cpp index d0713bc..1f51a21 100644 --- a/linden/indra/newview/llfloaterchat.cpp +++ b/linden/indra/newview/llfloaterchat.cpp | |||
@@ -202,7 +202,10 @@ void add_timestamped_line(LLViewerTextEditor* edit, LLChat chat, const LLColor4& | |||
202 | // If the msg is from an agent (not yourself though), | 202 | // If the msg is from an agent (not yourself though), |
203 | // extract out the sender name and replace it with the hotlinked name. | 203 | // extract out the sender name and replace it with the hotlinked name. |
204 | if (chat.mSourceType == CHAT_SOURCE_AGENT && | 204 | if (chat.mSourceType == CHAT_SOURCE_AGENT && |
205 | chat.mFromID != LLUUID::null) | 205 | chat.mFromID != LLUUID::null && |
206 | // [RLVa] - Version: 1.22.11 | Checked: 2009-07-08 (RLVa-1.0.0e) | ||
207 | (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ) | ||
208 | // [/RLVa] | ||
206 | { | 209 | { |
207 | chat.mURL = llformat("secondlife:///app/agent/%s/about",chat.mFromID.asString().c_str()); | 210 | chat.mURL = llformat("secondlife:///app/agent/%s/about",chat.mFromID.asString().c_str()); |
208 | } | 211 | } |
@@ -261,6 +264,30 @@ void LLFloaterChat::toggleHistoryChannelControl() | |||
261 | // static | 264 | // static |
262 | void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file) | 265 | void LLFloaterChat::addChatHistory(const LLChat& chat, bool log_to_file) |
263 | { | 266 | { |
267 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | ||
268 | if (rlv_handler_t::isEnabled()) | ||
269 | { | ||
270 | // TODO-RLVa: we might cast too broad a net by filtering here, needs testing | ||
271 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) && (!chat.mRlvLocFiltered) && (CHAT_SOURCE_AGENT != chat.mSourceType) ) | ||
272 | { | ||
273 | LLChat& rlvChat = const_cast<LLChat&>(chat); | ||
274 | gRlvHandler.filterLocation(rlvChat.mText); | ||
275 | rlvChat.mRlvLocFiltered = TRUE; | ||
276 | } | ||
277 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!chat.mRlvNamesFiltered) ) | ||
278 | { | ||
279 | // NOTE: this will also filter inventory accepted/declined text in the chat history | ||
280 | LLChat& rlvChat = const_cast<LLChat&>(chat); | ||
281 | if (CHAT_SOURCE_AGENT != chat.mSourceType) | ||
282 | { | ||
283 | // Filter object and system chat (names are filtered elsewhere to save ourselves an gObjectList lookup) | ||
284 | gRlvHandler.filterNames(rlvChat.mText); | ||
285 | } | ||
286 | rlvChat.mRlvNamesFiltered = TRUE; | ||
287 | } | ||
288 | } | ||
289 | // [/RLVa:KB] | ||
290 | |||
264 | if ( gSavedPerAccountSettings.getBOOL("LogChat") && log_to_file) | 291 | if ( gSavedPerAccountSettings.getBOOL("LogChat") && log_to_file) |
265 | { | 292 | { |
266 | log_chat_text(chat); | 293 | log_chat_text(chat); |
@@ -391,6 +418,30 @@ void LLFloaterChat::addChat(const LLChat& chat, | |||
391 | chat.mChatType == CHAT_TYPE_DEBUG_MSG | 418 | chat.mChatType == CHAT_TYPE_DEBUG_MSG |
392 | && !gSavedSettings.getBOOL("ScriptErrorsAsChat"); | 419 | && !gSavedSettings.getBOOL("ScriptErrorsAsChat"); |
393 | 420 | ||
421 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) | ||
422 | if (rlv_handler_t::isEnabled()) | ||
423 | { | ||
424 | // TODO-RLVa: we might cast too broad a net by filtering here, needs testing | ||
425 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) && (!chat.mRlvLocFiltered) && (CHAT_SOURCE_AGENT != chat.mSourceType) ) | ||
426 | { | ||
427 | LLChat& rlvChat = const_cast<LLChat&>(chat); | ||
428 | if (!from_instant_message) | ||
429 | gRlvHandler.filterLocation(rlvChat.mText); | ||
430 | rlvChat.mRlvLocFiltered = TRUE; | ||
431 | } | ||
432 | if ( (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) && (!chat.mRlvNamesFiltered) ) | ||
433 | { | ||
434 | LLChat& rlvChat = const_cast<LLChat&>(chat); | ||
435 | if ( (!from_instant_message) && (CHAT_SOURCE_AGENT != chat.mSourceType) ) | ||
436 | { | ||
437 | // Filter object and system chat (names are filtered elsewhere to save ourselves an gObjectList lookup) | ||
438 | gRlvHandler.filterNames(rlvChat.mText); | ||
439 | } | ||
440 | rlvChat.mRlvNamesFiltered = TRUE; | ||
441 | } | ||
442 | } | ||
443 | // [/RLVa:KB] | ||
444 | |||
394 | #if LL_LCD_COMPILE | 445 | #if LL_LCD_COMPILE |
395 | // add into LCD displays | 446 | // add into LCD displays |
396 | if (!invisible_script_debug_chat) | 447 | if (!invisible_script_debug_chat) |
@@ -548,7 +599,11 @@ void LLFloaterChat::onClickToggleActiveSpeakers(void* userdata) | |||
548 | { | 599 | { |
549 | LLFloaterChat* self = (LLFloaterChat*)userdata; | 600 | LLFloaterChat* self = (LLFloaterChat*)userdata; |
550 | 601 | ||
551 | self->childSetVisible("active_speakers_panel", !self->childIsVisible("active_speakers_panel")); | 602 | // [RLVa:KB] - Checked: 2009-07-08 (RLVa-1.0.0e) |
603 | self->childSetVisible("active_speakers_panel", | ||
604 | (!self->childIsVisible("active_speakers_panel")) && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWNAMES)) ); | ||
605 | // [/RLVa:KB] | ||
606 | //self->childSetVisible("active_speakers_panel", !self->childIsVisible("active_speakers_panel")); | ||
552 | } | 607 | } |
553 | 608 | ||
554 | //static | 609 | //static |