]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/usermanager.cpp
Patch: /rehash (not /rehash ssl) will now rebind SSL ports, but not dh params etc...
[user/henk/code/inspircd.git] / src / usermanager.cpp
index 193262681e918c3d90ff1f17b602302379a32107..1917c780e3c73d11f2d25d00dcc771e63919d983 100644 (file)
@@ -155,14 +155,11 @@ void UserManager::AddClient(InspIRCd* Instance, int socket, int port, bool iscac
                }
        }
 
-        if (socket > -1)
-        {
-                if (!Instance->SE->AddFd(New))
-                {
-                       Instance->Log(DEBUG,"Internal error on new connection");
-                       User::QuitUser(Instance, New, "Internal error handling connection");
-                }
-        }
+       if (!Instance->SE->AddFd(New))
+       {
+               Instance->Log(DEBUG,"Internal error on new connection");
+               User::QuitUser(Instance, New, "Internal error handling connection");
+       }
 
        /* NOTE: even if dns lookups are *off*, we still need to display this.
         * BOPM and other stuff requires it.
@@ -270,8 +267,8 @@ unsigned int UserManager::UnregisteredUserCount()
 /* return how many local registered users there are */
 unsigned int UserManager::LocalUserCount()
 {
-        /* Doesnt count unregistered clients */
-        return (ServerInstance->local_users.size() - this->UnregisteredUserCount());
+       /* Doesnt count unregistered clients */
+       return (ServerInstance->local_users.size() - this->UnregisteredUserCount());
 }