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:
+4
-2
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user