mirror of
https://github.com/inspircd/inspircd.git
synced 2025-04-21 07:21:27 -04:00
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
This commit is contained in:
parent
653638c686
commit
dbcfdd074b
@ -728,11 +728,13 @@ void FullConnectUser(userrec* user, CullList* Goners)
|
|||||||
if (FindMatchingLocal(user) > a.maxlocal)
|
if (FindMatchingLocal(user) > a.maxlocal)
|
||||||
{
|
{
|
||||||
Goners->AddItem(user,"No more connections allowed from your host via this connect class (local)");
|
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;
|
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)");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user