diff options
author | angela <angela@lindenlab.com> | 2009-11-17 16:34:06 +0800 |
---|---|---|
committer | angela <angela@lindenlab.com> | 2009-11-17 16:34:06 +0800 |
commit | 2217a677104ffadab8815a0886d66ac264e74792 (patch) | |
tree | 4f4f45bc490756a1a41fb09f39e1cdb50822dc4d /indra/newview/llviewerchat.cpp | |
parent | ccc72757ef23fa7ffba066e5bdaf05e3f8a95cca (diff) | |
parent | 0098bf40ea73078e2164ae55a8fa2f9049d0d4e9 (diff) |
Automated merge with ssh://angela@hg.lindenlab.com/viewer/viewer-2-0/
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 |