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