diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 20:22:21 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-10-21 20:22:21 +0000 |
commit | 665ae74f2a8be8f9fd6592cd8f1655d3ad65a3dd (patch) | |
tree | a08cda75f80b25aad07e3520139979884f166441 /src/cmd_nick.cpp | |
parent | af739bfa5fbb8070dd3b0d21bdda493cb3052588 (diff) |
Tidy up some DNS stuff more
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8280 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_nick.cpp')
-rw-r--r-- | src/cmd_nick.cpp | 13 |
1 files changed, 2 insertions, 11 deletions
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)); } |