summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 19:00:53 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-29 19:00:53 +0000
commitf7224a0009b41f12e8d6b718cb5c73e5f1950949 (patch)
tree1e326c116645ab1194b543f0639dfce66bcd4e82
parentdc12fcac8757b36b7da88d0a9ff25acc009d539c (diff)
*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
-rw-r--r--src/users.cpp4
1 files 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;