diff options
author | Loren Shih <seraph@lindenlab.com> | 2011-02-01 11:28:22 -0500 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2011-02-01 11:28:22 -0500 |
commit | fbc6e5d63970e081d7543f884fcc0fb897fce28e (patch) | |
tree | e722e908e0cc1f889be16a4815286172222dac6b /indra/newview/llviewermessage.cpp | |
parent | 293b35f000ca4e8a4bcf85dc4782b2a72d1887ea (diff) | |
parent | f0074f1002f36ad680ae04daf3f5e026dca31d54 (diff) |
Automated merge up from viewer-development into mesh-development
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
-rw-r--r-- | indra/newview/llviewermessage.cpp | 8 |
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); } |