From a614bf9d4fa558bd86738ab9dbb7519ac01782a8 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 2 Oct 2007 13:13:50 +0000 Subject: Someone please bp this git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8107 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_ident.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_ident.cpp') diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 87022dbd5..9588bb3e7 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -209,7 +209,11 @@ class ModuleIdent : public Module #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; } -- cgit v1.2.3