summaryrefslogtreecommitdiff
path: root/src/chatlogger.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-01-30 22:03:25 +0300
committerAndrei Karas <akaras@inbox.ru>2012-01-30 22:03:25 +0300
commit0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2 (patch)
tree35796ebd3fb85ca0589f239bc93e7637cb124783 /src/chatlogger.cpp
parentc2351483dc7c918a592f2a1f52745c6552fb7d0c (diff)
downloadmanaverse-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.tar.gz
manaverse-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.tar.bz2
manaverse-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.tar.xz
manaverse-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.zip
Clear char logger on server disconnect.
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r--src/chatlogger.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp
index ad86de8e9..33763e561 100644
--- a/src/chatlogger.cpp
+++ b/src/chatlogger.cpp
@@ -39,7 +39,6 @@
#include "logger.h"
#include "configuration.h"
-
#include "utils/mkdir.h"
#include "utils/stringutils.h"
@@ -204,3 +203,10 @@ void ChatLogger::loadLast(std::string name, std::list<std::string> &list,
if (logFile.is_open())
logFile.close();
}
+
+void ChatLogger::clear()
+{
+ mLogDir = "";
+ mServerName = "";
+ mLogFileName = "";
+}