diff options
-rw-r--r-- | src/modules/m_redirect.cpp | 2 |
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()); |