From ab9a1cd1ffafb4c535f4f9ed09bce20065860437 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 22:02:07 +0000 Subject: 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 --- src/modules/m_ident.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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."); -- cgit v1.2.3