diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 12:00:25 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-28 12:00:25 +0000 |
commit | 95840640cb374a0845c866bd1ad56a04dd833081 (patch) | |
tree | 17fb64980c11b26d33967f58064f3579d2a1ca4d /src/dnsqueue.cpp | |
parent | 9296aee7bc95c0fb2a0d00f76b908eba99e730af (diff) |
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
Diffstat (limited to 'src/dnsqueue.cpp')
-rw-r--r-- | src/dnsqueue.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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)) |