diff options
author | Igor Borovkov <iborovkov@productengine.com> | 2010-02-02 17:58:29 +0200 |
---|---|---|
committer | Igor Borovkov <iborovkov@productengine.com> | 2010-02-02 17:58:29 +0200 |
commit | 250680a07871001bdb108b5aab33f04847ab823f (patch) | |
tree | 7d99129bd71d6de87962a633d4325c70a7892a3d /indra/newview/lllogchat.cpp | |
parent | 85cb82fdda339c573ecddf5010d9e78f8e9a984d (diff) |
fixed EXT-4755 Own context menu in voice chat participants list has 'Add Friend' and 'Pay' enabled
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/lllogchat.cpp')
-rw-r--r-- | indra/newview/lllogchat.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/newview/lllogchat.cpp b/indra/newview/lllogchat.cpp index dc187bf36c..96ce01c05f 100644 --- a/indra/newview/lllogchat.cpp +++ b/indra/newview/lllogchat.cpp @@ -138,16 +138,20 @@ void LLLogChat::saveHistory(const std::string& filename, const LLUUID& from_id, const std::string& line) { - if(!filename.size()) + std::string tmp_filename = filename; + LLStringUtil::trim(tmp_filename); + if (tmp_filename.empty()) { - llinfos << "Filename is Empty!" << llendl; + std::string warn = "Chat history filename [" + filename + "] is empty!"; + llwarning(warn, 666); + llassert(tmp_filename.size()); return; } - + llofstream file (LLLogChat::makeLogFileName(filename), std::ios_base::app); if (!file.is_open()) { - llinfos << "Couldn't open chat history log!" << llendl; + llwarns << "Couldn't open chat history log! - " + filename << llendl; return; } |