summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authordz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-21 16:05:59 +0000
committerdz <dz@e03df62e-2008-0410-955e-edbf42e46eb7>2009-11-21 16:05:59 +0000
commitded1f34b9828508762b05c80687ababb10a75dd8 (patch)
tree5741f611a8f982bd6d2ce7c83faa197bb84bcffd /src/modules
parent7d69810b84f7b38eb9bca8d610bf209efcf022fc (diff)
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
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_banredirect.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}
}
}