From f7224a0009b41f12e8d6b718cb5c73e5f1950949 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 29 Dec 2005 19:00:53 +0000 Subject: *FIX* 'No more connections allowed' was comparing against the network-wide limit rather than the local limit (ICK!) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2698 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/users.cpp b/src/users.cpp index 4db6dedc5..cf93ff198 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -593,13 +593,13 @@ void AddClient(int socket, char* host, int port, bool iscached, char* ip) for (int i = 0; i < MAXCHANS; i++) clientlist[tempnick]->chans.push_back(a); - if (clientlist.size() > Config->SoftLimit) + if (local_users.size() > Config->SoftLimit) { kill_link(clientlist[tempnick],"No more connections allowed"); return; } - if (clientlist.size() >= MAXCLIENTS) + if (local_users.size() >= MAXCLIENTS) { kill_link(clientlist[tempnick],"No more connections allowed"); return; -- cgit v1.2.3