mirror of
https://github.com/znc/znc.git
synced 2026-08-07 01:13:25 +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:
+6
-4
@@ -1000,10 +1000,13 @@ void CIRCSock::ForwardRaw353(const CString& sLine) const {
|
||||
// Get everything except the actual user list
|
||||
CString sTmp = sLine.Token(0, false, " :") + " :";
|
||||
|
||||
unsigned int i = 0;
|
||||
VCString vsNicks;
|
||||
VCString::const_iterator it;
|
||||
|
||||
// This loop runs once for every nick on the channel
|
||||
for (;;) {
|
||||
CString sNick = sNicks.Token(i).Trim_n(" ");
|
||||
sNicks.Split(" ", vsNicks, false);
|
||||
for (it = vsNicks.begin(); it != vsNicks.end(); ++it) {
|
||||
CString sNick = *it;
|
||||
if (sNick.empty())
|
||||
break;
|
||||
|
||||
@@ -1022,7 +1025,6 @@ void CIRCSock::ForwardRaw353(const CString& sLine) const {
|
||||
}
|
||||
|
||||
sTmp += sNick + " ";
|
||||
i++;
|
||||
}
|
||||
// Strip away the spaces we inserted at the end
|
||||
sTmp.TrimRight(" ");
|
||||
|
||||
Reference in New Issue
Block a user