diff options
author | Adam <Adam@anope.org> | 2013-04-04 18:50:46 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-04 18:52:35 -0500 |
commit | dbc77279bfad95caa999b1c7466a1c76bd579f84 (patch) | |
tree | 8e6a4d77111fcfea97f78973e49c2ae185274a24 | |
parent | c4ef566a6577dfdb1b8b0eb8cc85b428f77fe2e2 (diff) |
Fix applying some sxlines to users on add
-rw-r--r-- | modules/commands/os_noop.cpp | 3 | ||||
-rw-r--r-- | modules/commands/os_sxline.cpp | 2 |
2 files changed, 1 insertions, 4 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); diff --git a/modules/commands/os_sxline.cpp b/modules/commands/os_sxline.cpp index af397226a..2a98edf1d 100644 --- a/modules/commands/os_sxline.cpp +++ b/modules/commands/os_sxline.cpp @@ -389,7 +389,6 @@ class CommandOSSNLine : public CommandOSSXLineBase for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) { User *user = it->second; - ++it; if (!user->HasMode("OPER") && user->server != Me && Anope::Match(user->realname, x->mask, false, true)) user->Kill(Config->ServerName, rreason); @@ -616,7 +615,6 @@ class CommandOSSQLine : public CommandOSSXLineBase for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it) { User *user = it->second; - ++it; if (!user->HasMode("OPER") && user->server != Me && Anope::Match(user->nick, x->mask, false, true)) user->Kill(Config->ServerName, rreason); |