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
+6 -4
View File
@@ -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(" ");