mirror of
https://github.com/anope/anope.git
synced 2026-07-02 18:53:12 +02:00
Fixed bug #1190 and prevent m_dnsbl from akilling a user multiple times if they are in multiple blacklists
This commit is contained in:
@@ -27,9 +27,11 @@ class DNSBLResolver : public DNSRequest
|
||||
|
||||
void OnLookupComplete(const DNSRecord *)
|
||||
{
|
||||
if (!user)
|
||||
if (!user || user->GetExt("m_dnsbl_akilled"))
|
||||
return;
|
||||
|
||||
user->Extend("m_dnsbl_akilled");
|
||||
|
||||
Anope::string reason = this->blacklist.reason;
|
||||
reason = reason.replace_all_ci("%i", user->ip.addr());
|
||||
reason = reason.replace_all_ci("%h", user->host);
|
||||
|
||||
Reference in New Issue
Block a user