diff options
| author | Adam <Adam@anope.org> | 2011-09-25 04:19:15 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-09-25 04:19:15 -0400 |
| commit | 1f2399de364c09adcce4193895cd362d80ffdfc5 (patch) | |
| tree | 5f40fc531f22c174b6e10bb7bc12842a4a21d30b /modules/extra/m_dnsbl.cpp | |
| parent | 43201ead9575a74e350710bc191f4ac67366aca7 (diff) | |
Added a new database format and sqlite support. Also moved db-convert to a module.
Diffstat (limited to 'modules/extra/m_dnsbl.cpp')
| -rw-r--r-- | modules/extra/m_dnsbl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index c8f18a34c..894eebb8a 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -30,7 +30,7 @@ class DNSBLResolver : public DNSRequest void OnLookupComplete(const DNSQuery *record) { - if (!user || user->GetExt("m_dnsbl_akilled")) + if (!user || user->HasExt("m_dnsbl_akilled")) return; const ResourceRecord &ans_record = record->answers[0]; @@ -50,7 +50,7 @@ class DNSBLResolver : public DNSRequest record_reason = this->blacklist.replies[result]; } - user->Extend("m_dnsbl_akilled"); + user->Extend("m_dnsbl_akilled", NULL); Anope::string reason = this->blacklist.reason; reason = reason.replace_all_cs("%n", user->nick); |
