]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Someone please bp this
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 2 Oct 2007 13:13:50 +0000 (13:13 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Tue, 2 Oct 2007 13:13:50 +0000 (13:13 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8107 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_ident.cpp

index 87022dbd53d2b159c8c95fc5fd723cfd2ea76185..9588bb3e76ff90de96fe0db9e6e1d22e31a41ef9 100644 (file)
@@ -209,7 +209,11 @@ class ModuleIdent : public Module
                #endif
                
                IdentRequestSocket *isock = new IdentRequestSocket(ServerInstance, user, RequestTimeout, ip);
                #endif
                
                IdentRequestSocket *isock = new IdentRequestSocket(ServerInstance, user, RequestTimeout, ip);
-               user->Extend("ident_socket", isock);
+               if (isock->GetFd() > -1)
+                       user->Extend("ident_socket", isock);
+               else
+                       if (ServerInstance->SocketCull.find(isock) == ServerInstance->SocketCull.end())
+                               ServerInstance->SocketCull[isock] = isock;
                return 0;
        }
        
                return 0;
        }