mirror of
https://github.com/znc/znc.git
synced 2026-06-27 21:41:25 +02:00
Allow log module to get no arguments.
This was broken since znc-0.098-17-g64e565c (563bce5987)
which introduced possibility of log module to specify wanted path as argument.
Thanks to turnor for reporting this.
This commit is contained in:
@@ -128,7 +128,10 @@ bool CLogMod::OnLoad(const CString& sArgs, CString& sMessage)
|
||||
// Add default filename to path if it's a folder
|
||||
if (m_sLogPath.Right(1) == "/" || m_sLogPath.find("$WINDOW")==string::npos)
|
||||
{
|
||||
m_sLogPath += "/$WINDOW_%Y%m%d.log";
|
||||
if (!m_sLogPath.empty()) {
|
||||
m_sLogPath += "/";
|
||||
}
|
||||
m_sLogPath += "$WINDOW_%Y%m%d.log";
|
||||
}
|
||||
|
||||
// Check if it's allowed to write in this path in general
|
||||
|
||||
Reference in New Issue
Block a user