mirror of
https://github.com/znc/znc.git
synced 2026-05-09 06:44:40 +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:
@@ -17,15 +17,13 @@ public:
|
||||
}
|
||||
|
||||
virtual bool OnLoad(const CString& sArgs, CString& sMessage) {
|
||||
unsigned int a = 0;
|
||||
CString sChan = sArgs.Token(a++);
|
||||
VCString vsChans;
|
||||
sArgs.Split(" ", vsChans, false);
|
||||
|
||||
while (!sChan.empty()) {
|
||||
if (!Add(sChan)) {
|
||||
PutModule("Unable to add [" + sChan + "]");
|
||||
for (VCString::const_iterator it = vsChans.begin(); it != vsChans.end(); ++it) {
|
||||
if (!Add(*it)) {
|
||||
PutModule("Unable to add [" + *it + "]");
|
||||
}
|
||||
|
||||
sChan = sArgs.Token(a++);
|
||||
}
|
||||
|
||||
// Load our saved settings, ignore errors
|
||||
|
||||
Reference in New Issue
Block a user