Skip to content

Commit

Permalink
WriteOpers when reaching the softlimit
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5442 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Oct 6, 2006
1 parent fc2daac commit 321de93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/users.cpp
Expand Up @@ -945,6 +945,7 @@ void userrec::AddClient(InspIRCd* Instance, int socket, int port, bool iscached,
if ((Instance->local_users.size() > Instance->Config->SoftLimit) || (Instance->local_users.size() >= MAXCLIENTS))
{
Instance->Log(DEBUG,"Check softlimit failed");
Instance->WriteOpers("*** Warning: softlimit value has been reached: %d clients", Instance->Config->SoftLimit);
userrec::QuitUser(Instance, New,"No more connections allowed");
return;
}
Expand Down

0 comments on commit 321de93

Please sign in to comment.