From 30fec322809582f91be70cc1bb16c9678180db76 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sat, 7 Jun 2014 13:30:14 +0200 Subject: Relax fd bounds checking We can cope with fds greater than SocketEngine::GetMaxFds() since 3752b3f59d5216d7dc6221a361efc76b9ad2273d --- src/usermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/usermanager.cpp') 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"); -- cgit v1.3.1-10-gc9f91