X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fusermanager.cpp;h=3c234f13f5c3ebee11f4e799fd7d6afdf742a06b;hb=30fec322809582f91be70cc1bb16c9678180db76;hp=5dc410fffae7260e1fe13ff36f4443cff3c38471;hpb=4d7c590bb6a937c4c412241ae67b9fc74083b365;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/usermanager.cpp b/src/usermanager.cpp index 5dc410fff..3c234f13f 100644 --- a/src/usermanager.cpp +++ b/src/usermanager.cpp @@ -77,7 +77,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs this->local_users.push_front(New); - if ((this->local_users.size() > ServerInstance->Config->SoftLimit) || (this->local_users.size() >= (unsigned int)SocketEngine::GetMaxFds())) + if (this->local_users.size() > ServerInstance->Config->SoftLimit) { ServerInstance->SNO->WriteToSnoMask('a', "Warning: softlimit value has been reached: %d clients", ServerInstance->Config->SoftLimit); this->QuitUser(New,"No more connections allowed");