1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 15:46:37 +02:00

Cleanup of dns stuff based on stuff found making inspircd's module

This commit is contained in:
Adam
2013-05-05 01:57:24 -04:00
parent 1d0bb9b26b
commit 2044b4d3ad
6 changed files with 57 additions and 63 deletions
+4 -2
View File
@@ -153,14 +153,16 @@ class ModuleDNSBL : public Module
{
const Blacklist &b = this->blacklists[i];
Anope::string dnsbl_host = user_ip.addr() + "." + b.name;
DNSBLResolver *res = NULL;
try
{
Anope::string dnsbl_host = user_ip.addr() + "." + b.name;
DNSBLResolver *res = new DNSBLResolver(this, user, b, dnsbl_host, this->add_to_akill);
res = new DNSBLResolver(this, user, b, dnsbl_host, this->add_to_akill);
dnsmanager->Process(res);
}
catch (const SocketException &ex)
{
delete res;
Log(this) << ex.GetReason();
}
}