summaryrefslogtreecommitdiff
path: root/indra/newview/lllogchat.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/lllogchat.cpp')
-rw-r--r--indra/newview/lllogchat.cpp12
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);
}