summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorSimon Arlott <sa.me.uk>2018-01-28 21:59:50 +0000
committerSimon Arlott <sa.me.uk>2018-01-28 22:05:00 +0000
commitcaead4f4db57c2681ef8748782379da229adaf1b (patch)
tree9e0c5cd4ea072842bc33d1b4222ffb059191ef70 /modules
parentba2bd6e45c2a5f5d80ab3ea52535f889b50b3f39 (diff)
modules/dns: NotifySocket takes a bool parameter, not int address family
gcc warning: ?: using integer constants in boolean context, the expression will always evaluate to ‘true’ [-Wint-in-bool-context]
Diffstat (limited to 'modules')
-rw-r--r--modules/dns.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}