mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
modules_online: C++11 range-based for loops
This commit is contained in:
@@ -41,15 +41,14 @@ public:
|
||||
//Handle ISON
|
||||
if (sLine.Token(0).Equals("ison")) {
|
||||
VCString vsNicks;
|
||||
VCString::const_iterator it;
|
||||
|
||||
// Get the list of nicks which are being asked for
|
||||
sLine.Token(1, true).TrimLeft_n(":").Split(" ", vsNicks, false);
|
||||
|
||||
CString sBNCNicks;
|
||||
for (it = vsNicks.begin(); it != vsNicks.end(); ++it) {
|
||||
if (IsOnlineModNick(*it)) {
|
||||
sBNCNicks += " " + *it;
|
||||
for (const CString& sNick : vsNicks) {
|
||||
if (IsOnlineModNick(sNick)) {
|
||||
sBNCNicks += " " + sNick;
|
||||
}
|
||||
}
|
||||
// Remove the leading space
|
||||
|
||||
Reference in New Issue
Block a user