summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 18:16:23 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-28 18:16:23 +0000
commit33cfef94635f09fe7bb79f8a34bc795073ac30cc (patch)
tree5decb19cd96b875e837edf349d9c54a807b941a7
parent034f74a23b3d6aff177682c916e18382621f495a (diff)
Fix some next_call stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5571 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_nick.cpp2
-rw-r--r--src/cmd_user.cpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index 911c80bd8..2008e8e11 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -138,6 +138,8 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, userrec *user)
if (user->dns_done)
ServerInstance->Log(DEBUG,"Aborting dns lookup of %s because dns server experienced a failure.",user->nick);
}
+
+ ServerInstance->next_call = ServerInstance->Time() + ServerInstance->Config->dns_timeout;
}
if (user->registered == REG_NICKUSER)
{
diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp
index f7a22eb01..d6565ce11 100644
--- a/src/cmd_user.cpp
+++ b/src/cmd_user.cpp
@@ -55,6 +55,7 @@ CmdResult cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
if (user->registered == REG_NICKUSER)
{
/* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */
+ ServerInstance->next_call = ServerInstance->Time() + ServerInstance->Config->dns_timeout;
FOREACH_MOD(I_OnUserRegister,OnUserRegister(user));
}