diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-02 13:13:50 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-02 13:13:50 +0000 |
commit | a614bf9d4fa558bd86738ab9dbb7519ac01782a8 (patch) | |
tree | 6b9657c4e14226d9b37b8664eb11f5f326eb202a /src/modules/m_ident.cpp | |
parent | 51b6cc4d3a2b3f4eabf14a8f229f56e35a83905a (diff) |
Someone please bp this
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8107 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r-- | src/modules/m_ident.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |