]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Fixed bug where if channel limit was lower than the user count users could still...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 15 Apr 2005 00:32:18 +0000 (00:32 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 15 Apr 2005 00:32:18 +0000 (00:32 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1097 e03df62e-2008-0410-955e-edbf42e46eb7

src/inspircd.cpp

index fa88ecdc42d29f59dcdd3803895cbc79b31a7d3a..3e70d27f543eeaecca9f4ffe747ce4272ef1beed 100644 (file)
@@ -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;