From fbb7675c663cb71ff618ec7fe94e00da619d8025 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 30 Nov 2020 18:47:19 +0000 Subject: Move ban checking to core_channel. --- src/channels.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/channels.cpp') diff --git a/src/channels.cpp b/src/channels.cpp index 151bc62ba..4fe1d1e56 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -232,20 +232,6 @@ Channel* Channel::JoinUser(LocalUser* user, std::string cname, bool override, co // describing the situation, so we may stop here without sending anything if (MOD_RESULT == MOD_RES_DENY) return NULL; - - // If no module returned MOD_RES_DENY or MOD_RES_ALLOW (which is the case - // most of the time) then proceed to check channel bans. - // - // If a module explicitly allowed the join (by returning MOD_RES_ALLOW), - // then this entire section is skipped - if (MOD_RESULT == MOD_RES_PASSTHRU) - { - if (chan->IsBanned(user)) - { - user->WriteNumeric(ERR_BANNEDFROMCHAN, chan->name, "Cannot join channel (you're banned)"); - return NULL; - } - } } } -- cgit v1.3.1-10-gc9f91