diff options
Diffstat (limited to 'modules/commands/os_noop.cpp')
| -rw-r--r-- | modules/commands/os_noop.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/commands/os_noop.cpp b/modules/commands/os_noop.cpp index 91a8dbfd9..9e9af1398 100644 --- a/modules/commands/os_noop.cpp +++ b/modules/commands/os_noop.cpp @@ -44,10 +44,9 @@ class CommandOSNOOP : public Command Anope::string reason = "NOOP command used by " + source.GetNick(); /* Kill all the IRCops of the server */ - for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end();) + for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) { User *u2 = it->second; - ++it; if (u2->server == s && u2->HasMode("OPER")) u2->Kill(Config->OperServ, reason); |
