From f83d835cda5d967fd5f94eb87dcbc590e7b6f615 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 Oct 2006 21:21:10 +0000 Subject: More. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5440 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; } -- cgit v1.2.3