diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 12:22:39 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 12:22:39 +0000 |
commit | 4487dde76ffbdb21e7dc319b3b87d09c3cf60d8c (patch) | |
tree | ba24a999e2d1d9a5d708ef3df66058d35d18f410 /src/cmd_nick.cpp | |
parent | 7c5ab78be2fabce6d11e13ec819799527ddb738c (diff) |
Remove next_call garbage.. It didn't really do much more than obfuscate things. InspIRCd::DoBackgroundUserStuff() is now called once per second, roughly. This will (of course) not be going into 1.1.x
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8241 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r-- | src/cmd_nick.cpp | 11 |
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) |