diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 10:08:23 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 10:08:23 +0000 |
commit | d2c8683543d4d59897099d962e479c1082c0b207 (patch) | |
tree | 61ca789d119970a4346f168bf7ba7558d821d621 | |
parent | 6f52a2b9b26934c0c33b2e6549149e760e88fe78 (diff) |
DNS fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2245 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | src/dnsqueue.cpp | 7 |
1 files 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; |