summaryrefslogtreecommitdiff
path: root/modules/extra/m_dnsbl.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-09-14 18:24:14 -0400
committerAdam <Adam@anope.org>2010-09-14 18:24:14 -0400
commite7ac33fd622ae6e21bc9af684832b7de5cfa0c0c (patch)
tree1a9f5208bf3109db46b3b73c0030bcaba4039523 /modules/extra/m_dnsbl.cpp
parent630f3815ce5e1eac9dd8f82601c955131c3dce68 (diff)
Cleanup DNS requests when modules are unloaded, fixes unloading m_dnsbl during the middle of queries
Diffstat (limited to 'modules/extra/m_dnsbl.cpp')
-rw-r--r--modules/extra/m_dnsbl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp
index 42e505c31..ce82b68a4 100644
--- a/modules/extra/m_dnsbl.cpp
+++ b/modules/extra/m_dnsbl.cpp
@@ -23,7 +23,7 @@ class DNSBLResolver : public DNSRequest
bool add_to_akill;
public:
- DNSBLResolver(User *u, const Blacklist &b, const Anope::string &host, bool add_akill) : DNSRequest(host, DNS_QUERY_A, true), user(u), blacklist(b), add_to_akill(add_akill) { }
+ DNSBLResolver(Module *c, User *u, const Blacklist &b, const Anope::string &host, bool add_akill) : DNSRequest(host, DNS_QUERY_A, true, c), user(u), blacklist(b), add_to_akill(add_akill) { }
void OnLookupComplete(const DNSRecord *)
{
@@ -120,7 +120,7 @@ class ModuleDNSBL : public Module
try
{
Anope::string dnsbl_host = user_ip.addr() + "." + b.name;
- new DNSBLResolver(u, b, dnsbl_host, this->add_to_akill);
+ new DNSBLResolver(this, u, b, dnsbl_host, this->add_to_akill);
}
catch (const SocketException &ex)
{