summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-15 00:32:18 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-15 00:32:18 +0000
commitdcb36d77333ce02a792075b6dc51937445bc9852 (patch)
tree345dcbf7989ae0fb0777d4c007de0f46e72aef5f
parent3f4b15c2cfe51a654b5167273f5a95b29e757cf1 (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
-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;