summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/dns.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/dns.h b/include/dns.h
index c95cc64de..17d69ecb1 100644
--- a/include/dns.h
+++ b/include/dns.h
@@ -130,9 +130,11 @@ struct DNSRecord
/* Record length */
unsigned short rdlength;
- inline DNSRecord(const Anope::string &n);
/* When this record was created in our cache */
time_t created;
+
+ inline DNSRecord(const Anope::string &n);
+ operator bool() const;
};
/** The socket used to talk to the nameserver, uses UDP