From d2c8683543d4d59897099d962e479c1082c0b207 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 7 Dec 2005 10:08:23 +0000 Subject: DNS fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2245 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 5562b2299..610288673 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -179,14 +179,15 @@ public: userrec* usr = NULL; if (resolver1.HasResult()) { + usr = Find(u); + if ((usr) && (usr->dns_done)) + return true; if (resolver1.GetFD() != 0) { hostname = resolver1.GetResult(); - log(DEBUG,"REVERSE RESULT! %s",hostname.c_str()); - usr = Find(u); if (usr) { - if (usr->registered > 3) + if ((usr->registered > 3) && (hostname == "")) { usr->dns_done = true; return true; -- cgit v1.2.3