]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Remove dead code from UserManager::AddUser()
authorAttila Molnar <attilamolnar@hush.com>
Fri, 22 May 2015 16:52:15 +0000 (18:52 +0200)
committerAttila Molnar <attilamolnar@hush.com>
Fri, 22 May 2015 16:52:15 +0000 (18:52 +0200)
src/usermanager.cpp

index 3e5fee3fcba4729088515b1642a4ec41a447be1f..7e92507ca77b5844f3db08f8b5cb1ffa1e5eb9d2 100644 (file)
@@ -67,17 +67,7 @@ void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs
        /* NOTE: Calling this one parameter constructor for User automatically
         * allocates a new UUID and places it in the hash_map.
         */
-       LocalUser* New = NULL;
-       try
-       {
-               New = new LocalUser(socket, client, server);
-       }
-       catch (...)
-       {
-               ServerInstance->Logs->Log("USERS", LOG_DEFAULT, "*** WTF *** Duplicated UUID! -- Crack smoking monkeys have been unleashed.");
-               ServerInstance->SNO->WriteToSnoMask('a', "WARNING *** Duplicate UUID allocated!");
-               return;
-       }
+       LocalUser* const New = new LocalUser(socket, client, server);
        UserIOHandler* eh = &New->eh;
 
        // If this listener has an IO hook provider set then tell it about the connection