mirror of
https://github.com/znc/znc.git
synced 2026-07-06 01:41:12 +02:00
[sasl] Do not try to convert entire "verbose" command to bool
Fixes #1291
This commit is contained in:
+1
-1
@@ -76,7 +76,7 @@ class CSASLMod : public CModule {
|
||||
"[yes|no]", "Don't connect unless SASL authentication succeeds");
|
||||
AddCommand("Verbose", "yes|no", "Set verbosity level, useful to debug",
|
||||
[&](const CString& sLine) {
|
||||
m_bVerbose = sLine.ToBool();
|
||||
m_bVerbose = sLine.Token(1, true).ToBool();
|
||||
PutModule("Verbose: " + CString(m_bVerbose));
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user