summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorLoren Shih <seraph@lindenlab.com>2011-02-01 11:28:22 -0500
committerLoren Shih <seraph@lindenlab.com>2011-02-01 11:28:22 -0500
commitfbc6e5d63970e081d7543f884fcc0fb897fce28e (patch)
treee722e908e0cc1f889be16a4815286172222dac6b /indra/newview/llviewermessage.cpp
parent293b35f000ca4e8a4bcf85dc4782b2a72d1887ea (diff)
parentf0074f1002f36ad680ae04daf3f5e026dca31d54 (diff)
Automated merge up from viewer-development into mesh-development
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r--indra/newview/llviewermessage.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp
index ae8bd3f29a..f3cbb8cce3 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -2721,6 +2721,14 @@ void process_improved_im(LLMessageSystem *msg, void **user_data)
LLSD args;
args["slurl"] = location;
args["type"] = LLNotificationsUI::NT_NEARBYCHAT;
+
+ // Look for IRC-style emotes here so object name formatting is correct
+ std::string prefix = message.substr(0, 4);
+ if (prefix == "/me " || prefix == "/me'")
+ {
+ chat.mChatStyle = CHAT_STYLE_IRC;
+ }
+
LLNotificationsUI::LLNotificationManager::instance().onChat(chat, args);
}