summaryrefslogtreecommitdiff
path: root/src/cmd_nick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r--src/cmd_nick.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp
index d350b26b6..f23ad93fa 100644
--- a/src/cmd_nick.cpp
+++ b/src/cmd_nick.cpp
@@ -144,21 +144,10 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, User *user)
if (ServerInstance->Config->NoUserDns)
{
user->dns_done = true;
- ServerInstance->next_call = ServerInstance->Time();
}
else
{
user->StartDNSLookup();
- if (user->dns_done)
- {
- /* Cached result or instant failure - fall right through if possible */
- ServerInstance->next_call = ServerInstance->Time();
- }
- else
- {
- if (ServerInstance->next_call > ServerInstance->Time() + ServerInstance->Config->dns_timeout)
- ServerInstance->next_call = ServerInstance->Time() + ServerInstance->Config->dns_timeout;
- }
}
}
if (user->registered == REG_NICKUSER)