From: brain Date: Fri, 15 Apr 2005 00:32:18 +0000 (+0000) Subject: Fixed bug where if channel limit was lower than the user count users could still... X-Git-Tag: v2.0.23~10551 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=dcb36d77333ce02a792075b6dc51937445bc9852;p=user%2Fhenk%2Fcode%2Finspircd.git 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 --- 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;