summaryrefslogtreecommitdiff
path: root/indra/newview/llviewermessage.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2011-02-18 06:15:12 -0500
committerOz Linden <oz@lindenlab.com>2011-02-18 06:15:12 -0500
commit17f79c802023d3b220986321f51757b102b70e81 (patch)
tree93fd855bf772d1f0deac96a504323a707c112ea7 /indra/newview/llviewermessage.cpp
parentd0b4c4a7b2c454d1a287af4a3a7b7342609d555d (diff)
parentc89e281de1420254f8028f4dff907cf1ae985d7a (diff)
merge changes for viewer-vs2010
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 6fc85a3944..103989ee80 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);
}