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:
brain 2006-01-27 15:32:57 +00:00
parent 653638c686
commit dbcfdd074b

View File

@ -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;
}