mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-12 20:19:02 -04:00
Squish a warning
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9266 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
e66e07d53e
commit
29eea851b2
@ -108,7 +108,7 @@ void UserManager::AddClient(InspIRCd* Instance, int socket, int port, bool iscac
|
||||
|
||||
this->local_users.push_back(New);
|
||||
|
||||
if ((this->local_users.size() > Instance->Config->SoftLimit) || (this->local_users.size() >= Instance->SE->GetMaxFds()))
|
||||
if ((this->local_users.size() > Instance->Config->SoftLimit) || (this->local_users.size() >= (unsigned int)Instance->SE->GetMaxFds()))
|
||||
{
|
||||
Instance->SNO->WriteToSnoMask('A', "Warning: softlimit value has been reached: %d clients", Instance->Config->SoftLimit);
|
||||
User::QuitUser(Instance, New,"No more connections allowed");
|
||||
|
Loading…
x
Reference in New Issue
Block a user