From 6e255658272a3c566b2a9d5c9a0f2c2035910c60 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 16 Jul 2006 20:01:16 +0000 Subject: Only attempt forward lookup if the user still exists git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4428 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/dnsqueue.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/dnsqueue.cpp b/src/dnsqueue.cpp index 5572c3247..e1a856c34 100644 --- a/src/dnsqueue.cpp +++ b/src/dnsqueue.cpp @@ -170,15 +170,15 @@ public: usr->dns_done = true; return true; } - } - if (hostname != "") - { - resolver2.ForwardLookup(hostname, true); - if (resolver2.GetFD() != -1) + if (hostname != "") { - dnslist[resolver2.GetFD()] = this; - if (usr) - user_fd_to_dns[usr->fd] = this; + resolver2.ForwardLookup(hostname, true); + if (resolver2.GetFD() != -1) + { + dnslist[resolver2.GetFD()] = this; + if (usr) + user_fd_to_dns[usr->fd] = this; + } } } } -- cgit v1.2.3