diff options
| author | 2006-10-06 21:35:37 +0000 | |
|---|---|---|
| committer | 2006-10-06 21:35:37 +0000 | |
| commit | 321de93eeb0f687ffb8103bbedf30288c35ce74d (patch) | |
| tree | bee5e14d377e72def22e7ff77eddfd6b10c00411 /src/users.cpp | |
| parent | New example conf with softlimit set to 12800 so that the default doesnt confu... (diff) | |
| download | inspircd++-321de93eeb0f687ffb8103bbedf30288c35ce74d.tar.gz inspircd++-321de93eeb0f687ffb8103bbedf30288c35ce74d.tar.bz2 inspircd++-321de93eeb0f687ffb8103bbedf30288c35ce74d.zip | |
WriteOpers when reaching the softlimit
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5442 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 1 |
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; } |
