diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 22:02:07 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 22:02:07 +0000 |
commit | ab9a1cd1ffafb4c535f4f9ed09bce20065860437 (patch) | |
tree | 8730f55b8521d7752ad12e7034e7f1a39bd1db80 /src/modules/m_ident.cpp | |
parent | b669f920eaa9fb795d0a103d724943898a0df4b2 (diff) |
This works, not sure why. Someone find out why we cant use && !isock->HasResult() here? :p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8293 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_ident.cpp')
-rw-r--r-- | src/modules/m_ident.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp index 144a3bb53..ee0c3e83b 100644 --- a/src/modules/m_ident.cpp +++ b/src/modules/m_ident.cpp @@ -430,8 +430,11 @@ class ModuleIdent : public Module ServerInstance->Log(DEBUG, "Has ident_socket"); + time_t compare = isock->age; + compare += RequestTimeout; + /* Check for timeout of the socket */ - if (isock->age + RequestTimeout > ServerInstance->Time() && !isock->HasResult()) + if (ServerInstance->Time() >= RequestTimeout) { /* Ident timeout */ user->WriteServ("NOTICE Auth :*** Ident request timed out."); |