diff options
author | Josh Bell <josh@lindenlab.com> | 2008-03-04 16:59:57 +0000 |
---|---|---|
committer | Josh Bell <josh@lindenlab.com> | 2008-03-04 16:59:57 +0000 |
commit | a10f9639004b4eedc3b6e7b624912ff4ebd8fdc5 (patch) | |
tree | 051625f9ac6a0d08f613cf11da318c3fd30b06a9 /indra/newview/lllogchat.cpp | |
parent | 62d9c7f76ce4953064fbc2a778ad4ecefb918e01 (diff) |
svn merge -r 81304:81392 svn+ssh://svn.lindenlab.com/svn/linden/branches/maint-ui-8-merge
QAR-343 - merge maint-ui-7 and maint-ui-8 to release
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 d89ec791f1..6aa209b787 100644 --- a/indra/newview/lllogchat.cpp +++ b/indra/newview/lllogchat.cpp @@ -33,7 +33,8 @@ #include "lllogchat.h" #include "llappviewer.h" - +#include "llfloaterchat.h" + const S32 LOG_RECALL_SIZE = 2048; //static @@ -88,7 +89,7 @@ void LLLogChat::saveHistory(LLString filename, LLString line) } } -void LLLogChat::loadHistory(LLString filename , void (*callback)(LLString,void*), void* userdata) +void LLLogChat::loadHistory(LLString filename , void (*callback)(ELogLineType,LLString,void*), void* userdata) { if(!filename.size()) { @@ -98,6 +99,9 @@ void LLLogChat::loadHistory(LLString filename , void (*callback)(LLString,void*) FILE* fptr = LLFile::fopen(makeLogFileName(filename).c_str(), "r"); /*Flawfinder: ignore*/ if (!fptr) { + //LLUIString message = LLFloaterChat::getInstance()->getUIString("IM_logging_string"); + //callback(LOG_EMPTY,"IM_logging_string",userdata); + callback(LOG_EMPTY,"",userdata); return; //No previous conversation with this name. } else @@ -124,14 +128,14 @@ void LLLogChat::loadHistory(LLString filename , void (*callback)(LLString,void*) if (!firstline) { - callback(buffer,userdata); + callback(LOG_LINE,buffer,userdata); } else { firstline = FALSE; } } - callback("-- End of Log ---",userdata); + callback(LOG_END,"",userdata); fclose(fptr); } |