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/modules/cs_tban.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/modules/cs_tban.c')
-rw-r--r-- | src/modules/cs_tban.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 10f295b3d..12fe8cd65 100644 --- a/src/modules/cs_tban.c +++ b/src/modules/cs_tban.c @@ -203,7 +203,7 @@ int canBanUser(Channel * c, User * u, User * u2) notice_lang(Config.s_ChanServ, u, ACCESS_DENIED); else if (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 ok = 1; |