summaryrefslogtreecommitdiff
path: root/src/dns.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dns.cpp')
-rw-r--r--src/dns.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/dns.cpp b/src/dns.cpp
index e5a2c3098..45b3db6bd 100644
--- a/src/dns.cpp
+++ b/src/dns.cpp
@@ -221,6 +221,11 @@ inline DNSRecord::DNSRecord(const Anope::string &n) : name(n)
this->created = Anope::CurTime;
}
+DNSRecord::operator bool() const
+{
+ return !this->result.empty();
+}
+
DNSSocket::DNSSocket() : ConnectionSocket(false, SOCK_DGRAM)
{
}
@@ -613,7 +618,6 @@ DNSRecord DNSManager::BlockingQuery(const Anope::string &mask, QueryType qt)
DNSRecord result(mask);
addrinfo *addrresult, hints;
- result.result = mask;
result.type = qt;
int type = AF_UNSPEC;