diff options
author | richard <none@none> | 2009-10-27 11:19:03 -0700 |
---|---|---|
committer | richard <none@none> | 2009-10-27 11:19:03 -0700 |
commit | afb9df7643443f62a154f93c0f3eb39dfc218a48 (patch) | |
tree | 7c3a1c3eaccb33af933d0d642030160a7c513b36 /indra/newview/llnearbychathandler.cpp | |
parent | b4dd4a4d7777dccd8a5503c5e5736b57710cbfa7 (diff) | |
parent | d4c3bf46ed6718ed1fa219d56436548edc6a2fa7 (diff) |
merge
Diffstat (limited to 'indra/newview/llnearbychathandler.cpp')
-rw-r--r-- | indra/newview/llnearbychathandler.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llnearbychathandler.cpp b/indra/newview/llnearbychathandler.cpp index 4aefbd1a33..6b0d6d61e0 100644 --- a/indra/newview/llnearbychathandler.cpp +++ b/indra/newview/llnearbychathandler.cpp @@ -188,6 +188,17 @@ void LLNearbyChatScreenChannel::addNotification(LLSD& notification) return; } + int chat_type = notification["chat_type"].asInteger(); + + if( ((EChatType)chat_type == CHAT_TYPE_DEBUG_MSG)) + { + if(gSavedSettings.getBOOL("ShowScriptErrors") == FALSE) + return; + if(gSavedSettings.getS32("ShowScriptErrorsLocation")== 1) + return; + } + + //take 1st element from pool, (re)initialize it, put it in active toasts LLToast* toast = m_toast_pool.back(); @@ -330,6 +341,7 @@ void LLNearbyChatHandler::processChat(const LLChat& chat_msg) notification["from_id"] = chat_msg.mFromID; notification["time"] = chat_msg.mTime; notification["source"] = (S32)chat_msg.mSourceType; + notification["chat_type"] = (S32)chat_msg.mChatType; channel->addNotification(notification); } |