summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-15 00:43:15 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-15 00:43:15 +0000
commit3b48134eef499aab8912f9ddfd41c18f6cd61d61 (patch)
tree555df30486fdbe21cf9270caf6caf926f7757321
parentdcb36d77333ce02a792075b6dc51937445bc9852 (diff)
Someone got a comparison completely the wrong way around (and it wasnt spotted!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1098 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_redirect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_redirect.cpp b/src/modules/m_redirect.cpp
index 2d471ccab..77011c72f 100644
--- a/src/modules/m_redirect.cpp
+++ b/src/modules/m_redirect.cpp
@@ -82,7 +82,7 @@ class ModuleRedirect : public Module
{
if (chan->IsCustomModeSet('L'))
{
- if (chan->limit >= Srv->CountUsers(chan))
+ if (Srv->CountUsers(chan) >= chan->limit)
{
std::string channel = chan->GetModeParameter('L');
WriteServ(user->fd,"470 %s :%s has become full, so you are automatically being transferred to the linked channel %s",user->nick,cname,channel.c_str());