summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-06 21:35:37 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-06 21:35:37 +0000
commit321de93eeb0f687ffb8103bbedf30288c35ce74d (patch)
treebee5e14d377e72def22e7ff77eddfd6b10c00411
parentfc2daac4fae2562578995c5a51adc7b05510a508 (diff)
WriteOpers when reaching the softlimit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5442 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/users.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index cce72c5b8..94b969ca0 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -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;
}