summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 23:55:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-18 23:55:04 +0000
commit972328a2656088a1f2a68faf9c00ec0d98853031 (patch)
tree0c243e3678fc64adadbc7aae145b2285924a580f /src
parent033cf7bfdbe73dbd446efc7b08f58bf6c7262bf6 (diff)
Fix timeouts
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4977 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_ident.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/modules/m_ident.cpp b/src/modules/m_ident.cpp
index 6c2f0cf52..eab8f537a 100644
--- a/src/modules/m_ident.cpp
+++ b/src/modules/m_ident.cpp
@@ -234,10 +234,13 @@ class ModuleIdent : public Module
RFC1413* ident;
if (user->GetExt("ident_data", ident))
{
- if (ident->timeout_end > ServerInstance->Time())
+ /*ServerInstance->Log(DEBUG,"TIMES: %lu %lu",ident->timeout_end, ServerInstance->Time());*/
+ if (ServerInstance->Time() > ident->timeout_end)
{
ident->u = NULL;
ServerInstance->RemoveSocket(ident);
+ user->Shrink("ident_data");
+ return true;
}
}
return (!user->GetExt("ident_data", ident));