diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-04-29 18:56:31 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 20:58:54 -0400 |
commit | 503958aa77382a85a041e195d04b7a2ec51589e3 (patch) | |
tree | 4dd29080a6174b101a3a29889d173b537eadaa9c /src/core/cs_ban.c | |
parent | c1d161dec451ea790ff87078b5d80b1f71a3e9f0 (diff) |
Prevent negaitve mode changes, kicks, bans, and autokicks from affecting users with unreal usermode +q or similar
Diffstat (limited to 'src/core/cs_ban.c')
-rw-r--r-- | src/core/cs_ban.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c index bacc8dff8..95c5c6556 100644 --- a/src/core/cs_ban.c +++ b/src/core/cs_ban.c @@ -62,9 +62,9 @@ class CommandCSBan : public Command */ } else if (ModeManager::FindChannelModeByName(CMODE_EXCEPT) && is_excepted(ci, u2)) { notice_lang(Config.s_ChanServ, u, CHAN_EXCEPTED, u2->nick.c_str(), ci->name.c_str()); - } else if (is_protected(u2)) { + } else if (u2->IsProtected()) notice_lang(Config.s_ChanServ, u, ACCESS_DENIED); - } else { + else { char mask[BUFSIZE]; get_idealban(ci, u2, mask, sizeof(mask)); |