mirror of
https://github.com/znc/znc.git
synced 2026-08-11 19:32:46 +02:00
Use CString::Split() in more places
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1808 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -27,17 +27,17 @@ public:
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
|
||||
int i(0);
|
||||
CString arg(sArgs.Token(i));
|
||||
VCString vsChans;
|
||||
VCString::const_iterator it;
|
||||
sArgs.Split(" ", vsChans, false);
|
||||
|
||||
while (!arg.empty()) {
|
||||
if (arg.StrCmp("saslauthd") || arg.StrCmp("auxprop")) {
|
||||
method += arg + " ";
|
||||
for (it = vsChans.begin(); it != vsChans.end(); ++it) {
|
||||
if (it->StrCmp("saslauthd") || it->StrCmp("auxprop")) {
|
||||
method += *it + " ";
|
||||
}
|
||||
else {
|
||||
CUtils::PrintError("Ignoring invalid SASL pwcheck method: " + arg);
|
||||
CUtils::PrintError("Ignoring invalid SASL pwcheck method: " + *it);
|
||||
}
|
||||
arg = sArgs.Token(++i);
|
||||
}
|
||||
method.TrimRight();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user