summaryrefslogtreecommitdiff
path: root/src/core/cs_ban.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/cs_ban.c')
-rw-r--r--src/core/cs_ban.c4
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));