summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-11-09 14:59:35 -0500
committerAdam <Adam@anope.org>2010-11-09 15:04:28 -0500
commit0d2db1f9f907616d4b83dccd34f95bf31c95ba0f (patch)
tree902f480cf681bcfa2989b5882fc91f095fcb0d60 /modules
parentfe6d7913ce3c2fc686691806202d1da6a0969e00 (diff)
Fixed DNS caching and made DNS cache empty results
(cherry picked from commit 438ae629e51b519d0d5f70531d0262be1b9fe2bc)
Diffstat (limited to 'modules')
-rw-r--r--modules/extra/m_dnsbl.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp
index f043cde1e..a9351d35e 100644
--- a/modules/extra/m_dnsbl.cpp
+++ b/modules/extra/m_dnsbl.cpp
@@ -146,11 +146,12 @@ class ModuleDNSBL : public Module
try
{
Anope::string dnsbl_host = user_ip.addr() + "." + b.name;
- new DNSBLResolver(this, u, b, dnsbl_host, this->add_to_akill);
+ DNSBLResolver *res = new DNSBLResolver(this, u, b, dnsbl_host, this->add_to_akill);
+ res->Process();
}
catch (const SocketException &ex)
{
- Log() << "Resolver: " << ex.GetReason();
+ Log() << "m_dnsbl: " << ex.GetReason();
}
}