From 665ae74f2a8be8f9fd6592cd8f1655d3ad65a3dd Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 21 Oct 2007 20:22:21 +0000 Subject: Tidy up some DNS stuff more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8280 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_nick.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) (limited to 'src/cmd_nick.cpp') diff --git a/src/cmd_nick.cpp b/src/cmd_nick.cpp index f23ad93fa..218ea23f2 100644 --- a/src/cmd_nick.cpp +++ b/src/cmd_nick.cpp @@ -140,17 +140,8 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, User *user) if (user->registered < REG_NICKUSER) { user->registered = (user->registered | REG_NICK); - - if (ServerInstance->Config->NoUserDns) - { - user->dns_done = true; - } - else - { - user->StartDNSLookup(); - } } - if (user->registered == REG_NICKUSER) + else if (user->registered == REG_NICKUSER) { /* user is registered now, bit 0 = USER command, bit 1 = sent a NICK command */ int MOD_RESULT = 0; @@ -158,7 +149,7 @@ CmdResult cmd_nick::Handle (const char** parameters, int pcnt, User *user) if (MOD_RESULT > 0) return CMD_FAILURE; } - if (user->registered == REG_ALL) + else if (user->registered == REG_ALL) { FOREACH_MOD(I_OnUserPostNick,OnUserPostNick(user,oldnick)); } -- cgit v1.2.3