Skip to content

Commit

Permalink
Don't create folders with \ in log module
Browse files Browse the repository at this point in the history
Also don't try to write files with ? in filename

Fix #377
  • Loading branch information
DarthGandalf committed Aug 18, 2013
1 parent 46e9e20 commit cec2fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/log.cpp
Expand Up @@ -84,7 +84,7 @@ void CLogMod::PutLog(const CString& sLine, const CString& sWindow /*= "Status"*/

// $WINDOW has to be handled last, since it can contain %
sPath.Replace("$NETWORK", (m_pNetwork ? m_pNetwork->GetName() : "znc"));
sPath.Replace("$WINDOW", sWindow.Replace_n("/", "?"));
sPath.Replace("$WINDOW", sWindow.Replace_n("/", "-").Replace_n("\\", "-"));
sPath.Replace("$USER", (m_pUser ? m_pUser->GetUserName() : "UNKNOWN"));

// Check if it's allowed to write in this specific path
Expand Down

0 comments on commit cec2fa6

Please sign in to comment.