diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-01-30 22:03:25 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-01-30 22:03:25 +0300 |
commit | 0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2 (patch) | |
tree | 35796ebd3fb85ca0589f239bc93e7637cb124783 /src/chatlogger.cpp | |
parent | c2351483dc7c918a592f2a1f52745c6552fb7d0c (diff) | |
download | plus-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.tar.gz plus-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.tar.bz2 plus-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.tar.xz plus-0fc75f671dace65f1ed8d5b6a66b17b9ab15a9c2.zip |
Clear char logger on server disconnect.
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r-- | src/chatlogger.cpp | 8 |
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 = ""; +} |