diff options
| author | Adam <Adam@anope.org> | 2010-09-17 14:32:46 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-09-17 14:32:46 -0400 |
| commit | 74566d869aefab16ede2fa946a0ea7b2cfed51ef (patch) | |
| tree | e5de1428e8e6071c55b9de5662ad4c94407e8b6b /modules | |
| parent | 61e75646339753609d25aad0f4f8f60db1c966b5 (diff) | |
Fixed bug #1190 and prevent m_dnsbl from akilling a user multiple times if they are in multiple blacklists
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/extra/m_dnsbl.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index ce82b68a4..6360c3753 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -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); |
