diff options
author | angela <angela@lindenlab.com> | 2009-11-16 20:46:40 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2009-11-16 20:46:40 +0800 |
commit | 1baf1d218644ac5dc00d9b41119a1ef168c709a2 (patch) | |
tree | 1ddea72957ea597b655c51d144bc83cfbb32d774 /indra/newview/llviewerchat.cpp | |
parent | 6b47e36b159a0e036beb442b82b1356aa756f152 (diff) |
fix chat format for /me
Diffstat (limited to 'indra/newview/llviewerchat.cpp')
-rw-r--r-- | indra/newview/llviewerchat.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/newview/llviewerchat.cpp b/indra/newview/llviewerchat.cpp index d65a060bbc..ccf9ce9056 100644 --- a/indra/newview/llviewerchat.cpp +++ b/indra/newview/llviewerchat.cpp @@ -201,3 +201,20 @@ S32 LLViewerChat::getChatFontSize() { return gSavedSettings.getS32("ChatFontSize"); } + + +//static +void LLViewerChat::formatChatMsg(const LLChat& chat, std::string& formated_msg) +{ + std::string tmpmsg = chat.mText; + + if(chat.mChatStyle == CHAT_STYLE_IRC) + { + formated_msg = chat.mFromName + tmpmsg.substr(3); + } + else + { + formated_msg = tmpmsg; + } + +}
\ No newline at end of file |