From dcb36d77333ce02a792075b6dc51937445bc9852 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 15 Apr 2005 00:32:18 +0000 Subject: 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 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3