diff options
Diffstat (limited to 'src/chatlogger.cpp')
-rw-r--r-- | src/chatlogger.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/chatlogger.cpp b/src/chatlogger.cpp index 3b1cbc771..83292411e 100644 --- a/src/chatlogger.cpp +++ b/src/chatlogger.cpp @@ -170,17 +170,12 @@ void ChatLogger::setServerName(const std::string &serverName) secureName(mServerName); if (mLogDir != "") { - DIR *const dir = opendir((mLogDir + PhysFs::getDirSeparator() + DIR *const dir = opendir((mLogDir + dirSeparator + mServerName).c_str()); if (!dir) - { - mkdir_r((mLogDir + PhysFs::getDirSeparator() - + mServerName).c_str()); - } + mkdir_r((mLogDir + dirSeparator + mServerName).c_str()); else - { closedir(dir); - } } } |