summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2011-01-06 06:07:11 -0500
committerJonathan Yap <none@none>2011-01-06 06:07:11 -0500
commitd0b5e6b0b4acebd1b11685dea290b830957ba9dc (patch)
tree70a07e768d7c5b014c32d8efd954ae0306593d41 /indra
parentd5a0c56bf5d933b7cee072cbc1851a626e672ded (diff)
STORM-829 Viewer 2 does not parse /me in object Instant Messages
Diffstat (limited to 'indra')
-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 7dc5d96689..7f7855c08c 100644
--- a/indra/newview/llviewermessage.cpp
+++ b/indra/newview/llviewermessage.cpp
@@ -2746,6 +2746,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);
}