summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-06 21:21:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-06 21:21:10 +0000
commitf83d835cda5d967fd5f94eb87dcbc590e7b6f615 (patch)
treed6ef1f756d07208a9f70f5272c2e727aca813022 /src/users.cpp
parenta495d2228146f109654fa1055f8fca9930ac85bd (diff)
More.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5440 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index c5199cb30..cce72c5b8 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -941,9 +941,10 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached,
Instance->Log(DEBUG,"Push back to local users.");
Instance->local_users.push_back(New);
- Instance->Log(DEBUG,"Check softlimit.");
+ Instance->Log(DEBUG,"Check softlimit: %d %d %d",Instance->local_users.size(), Instance->Config->SoftLimit, MAXCLIENTS);
if ((Instance->local_users.size() > Instance->Config->SoftLimit) || (Instance->local_users.size() >= MAXCLIENTS))
{
+ Instance->Log(DEBUG,"Check softlimit failed");
userrec::QuitUser(Instance, New,"No more connections allowed");
return;
}