From 9635658258d2a23a081c93372c188f8e5e3a234d Mon Sep 17 00:00:00 2001 From: Jos Ahrens Date: Sat, 21 Jan 2017 16:32:38 +0100 Subject: [PATCH] [sasl] Do not try to convert entire "verbose" command to bool. (#1365) Fixes #1291 for the stable branch. Ref. https://github.com/znc/znc/commit/9864b2716a0274e046867aba83962b979d078bdd for the original fix by psychon with dgw, this is merely a non-cherry-pick backport as I realized too late it was already fixed elsewhere in the same manner. --- modules/sasl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sasl.cpp b/modules/sasl.cpp index eeb13291..582774be 100644 --- a/modules/sasl.cpp +++ b/modules/sasl.cpp @@ -77,7 +77,7 @@ public: "[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)); });