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:
psychon
2010-03-07 11:08:26 +00:00
parent 698965777a
commit 5d9a22f6cc
8 changed files with 48 additions and 51 deletions
+7 -7
View File
@@ -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();