From 95840640cb374a0845c866bd1ad56a04dd833081 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 28 Jul 2006 12:00:25 +0000 Subject: Change all references to voodoo numbers (7, 3 etc) to the new bitwise constants for user->registered Change a lot of user->fd > -1 to use the IS_LOCAL() macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/dnsqueue.cpp') diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index fb0e0bd75..51a7e1964 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -106,12 +106,12 @@ public: usr = Find(u); if (usr) { - if (usr->registered > 3) + if (usr->registered > REG_NICKUSER) { usr->dns_done = true; return true; } - if ((hostname != "") && (usr->registered != 7)) + if ((hostname != "") && (usr->registered != REG_ALL)) { if ((std::string(inet_ntoa(usr->ip4)) == ip) && (hostname.length() < 65)) { @@ -166,7 +166,7 @@ public: if (usr) { user_fd_to_dns[usr->fd] = NULL; - if ((usr->registered > 3) || (hostname == "")) + if ((usr->registered > REG_NICKUSER) || (hostname == "")) { WriteServ(usr->fd,"NOTICE Auth :*** Could not resolve your hostname -- Using your IP address instead"); usr->dns_done = true; @@ -243,7 +243,7 @@ void ZapThisDns(int fd) #ifdef THREADED_DNS /* if (fd_ref_table[fd]) { - if (fd_ref_table[fd]->registered >= 3) + if (fd_ref_table[fd]->registered >= REG_NICKUSER) { log(DEBUG,"Joining thread for user %d",fd); if (pthread_join(fd_ref_table[fd]->dnsthread, NULL)) -- cgit v1.2.3