aboutsummaryrefslogtreecommitdiffstats
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorGravatar brain2005-04-15 00:32:18 +0000
committerGravatar brain2005-04-15 00:32:18 +0000
commitdcb36d77333ce02a792075b6dc51937445bc9852 (patch)
tree345dcbf7989ae0fb0777d4c007de0f46e72aef5f /src/inspircd.cpp
parentNew documentation on today's new methods etc (diff)
Fixed bug where if channel limit was lower than the user count users could still join, but not if it was equal
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1097 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index fa88ecdc4..3e70d27f5 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -1567,7 +1567,7 @@ chanrec* add_channel(userrec *user, const char* cn, const char* key, bool overri
if (Ptr->limit)
{
- if (usercount(Ptr) == Ptr->limit)
+ if (usercount(Ptr) >= Ptr->limit)
{
WriteServ(user->fd,"471 %s %s :Cannot join channel (Channel is full)",user->nick, Ptr->name);
return NULL;