From 4487dde76ffbdb21e7dc319b3b87d09c3cf60d8c Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 21 Oct 2007 12:22:39 +0000 Subject: 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 --- src/cmd_nick.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/cmd_nick.cpp') 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) -- cgit v1.2.3