diff options
-rw-r--r-- | src/cmd_nick.cpp | 2 | ||||
-rw-r--r-- | src/cmd_user.cpp | 1 |
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)); } |