From caead4f4db57c2681ef8748782379da229adaf1b Mon Sep 17 00:00:00 2001 From: Simon Arlott Date: Sun, 28 Jan 2018 21:59:50 +0000 Subject: modules/dns: NotifySocket takes a bool parameter, not int address family MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gcc warning: ?: using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Wint-in-bool-context] --- modules/dns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/dns.cpp b/modules/dns.cpp index 34d68e3da..5e7f3a354 100644 --- a/modules/dns.cpp +++ b/modules/dns.cpp @@ -976,7 +976,7 @@ class MyManager : public Manager, public Timer packet->questions.push_back(Question(zone, QUERY_SOA)); - new NotifySocket(ip.find(':') != Anope::string::npos ? AF_INET6 : AF_INET, packet); + new NotifySocket(ip.find(':') != Anope::string::npos, packet); } } -- cgit