summaryrefslogtreecommitdiff
path: root/modules/commands/os_noop.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-04 18:50:46 -0500
committerAdam <Adam@anope.org>2013-04-04 18:52:35 -0500
commitdbc77279bfad95caa999b1c7466a1c76bd579f84 (patch)
tree8e6a4d77111fcfea97f78973e49c2ae185274a24 /modules/commands/os_noop.cpp
parentc4ef566a6577dfdb1b8b0eb8cc85b428f77fe2e2 (diff)
Fix applying some sxlines to users on add
Diffstat (limited to 'modules/commands/os_noop.cpp')
-rw-r--r--modules/commands/os_noop.cpp3
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);