diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 20:01:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-16 20:01:16 +0000 |
commit | 6e255658272a3c566b2a9d5c9a0f2c2035910c60 (patch) | |
tree | dcadc1087b925837dc191a458f847f11a40dd4e3 /src | |
parent | 09dbf0f94815b40f6d2d1cdff272c7e45892f963 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/dnsqueue.cpp | 16 |
1 files 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; + } } } } |