From ded1f34b9828508762b05c80687ababb10a75dd8 Mon Sep 17 00:00:00 2001 From: dz Date: Sat, 21 Nov 2009 16:05:59 +0000 Subject: Don't tell the user they are banned and then still let them join if they have a redirect ban set. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12165 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_banredirect.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/modules/m_banredirect.cpp b/src/modules/m_banredirect.cpp index e2346b1d3..ae81c1733 100644 --- a/src/modules/m_banredirect.cpp +++ b/src/modules/m_banredirect.cpp @@ -312,7 +312,7 @@ class ModuleBanRedirect : public Module if(destchan && ServerInstance->Modules->Find("m_redirect.so") && destchan->IsModeSet('L') && !destlimit.empty() && (destchan->GetUserCounter() >= atoi(destlimit.c_str()))) { user->WriteNumeric(474, "%s %s :Cannot join channel (You are banned)", user->nick.c_str(), chan->name.c_str()); - return MOD_RES_ALLOW; + return MOD_RES_DENY; } else { @@ -321,7 +321,7 @@ class ModuleBanRedirect : public Module nofollow = true; Channel::JoinUser(user, redir->targetchan.c_str(), false, "", false, ServerInstance->Time()); nofollow = false; - return MOD_RES_ALLOW; + return MOD_RES_DENY; } } } -- cgit v1.2.3