saslauth: Error out "better" on invalid module arguments

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1809 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2010-03-07 13:12:41 +00:00
parent 5d9a22f6cc
commit 5a02c73794
+8 -2
View File
@@ -37,12 +37,18 @@ public:
}
else {
CUtils::PrintError("Ignoring invalid SASL pwcheck method: " + *it);
sMessage = "Ignored invalid SASL pwcheck method";
}
}
method.TrimRight();
if (sasl_server_init(NULL, NULL) != SASL_OK){
CUtils::PrintError("SASL Could Not Be Initialized - Halting Startup");
if (method.empty()) {
sMessage = "Need a pwcheck method as argument (saslauthd, auxprop)";
return false;
}
if (sasl_server_init(NULL, NULL) != SASL_OK) {
sMessage = "SASL Could Not Be Initialized - Halting Startup";
return false;
}