diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-27 15:32:57 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-27 15:32:57 +0000 |
commit | dbcfdd074bcec35f0a19ebbbfcaab9273c91763c (patch) | |
tree | a5adb7fc5c70ad38d231e8db8ccaf03ce3f7b56c /src | |
parent | 653638c68684ec035fd58bc2d0d91c9bf9aa2ab9 (diff) |
Added warnings to opers when session limits are exceeded
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2935 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 8089f5c23..072437210 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -728,11 +728,13 @@ void FullConnectUser(userrec* user, CullList* Goners) if (FindMatchingLocal(user) > a.maxlocal) { Goners->AddItem(user,"No more connections allowed from your host via this connect class (local)"); + WriteOpers("*** WARNING: maximum LOCAL connections (%ld) exceeded for IP %s",a.maxlocal,(char*)inet_ntoa(user->ip4)); return; } - if (FindMatchingGlobal(user) > a.maxglobal) + else if (FindMatchingGlobal(user) > a.maxglobal) { Goners->AddItem(user,"No more connections allowed from your host via this connect class (global)"); + WriteOpers("*** WARNING: maximum GLOBAL connections (%ld) exceeded for IP %s",a.maxglobal,(char*)inet_ntoa(user->ip4)); return; } |