[sasl] Do not try to convert entire "verbose" command to bool

Fixes #1291
This commit is contained in:
Uli Schlachter
2016-07-08 02:06:00 -05:00
committed by dgw
parent 5dd209369d
commit 9864b2716a
+1 -1
View File
@@ -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));
});