diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2009-11-17 16:36:22 +0200 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2009-11-17 16:36:22 +0200 |
commit | 402e957c56113550e53a3892908c6c7a5c16783a (patch) | |
tree | 33cf9a73825392b2ed08d1de91c6bd4c0a28d83b /indra/newview/llviewerchat.cpp | |
parent | 53be27e742b642c1642c3289e3e11b300a14d360 (diff) | |
parent | 2217a677104ffadab8815a0886d66ac264e74792 (diff) |
Merge from default branch.
Added missing trailing newline to fix Linux build.
--HG--
branch : product-engine
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..96ecf0d8a7 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; + } + +} |