From 03119f2aa98e607c536b69ddd9917786d1b54cf2 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 19 Dec 2011 15:41:14 -0500 Subject: [PATCH] Made m_dnsbl ban IPs not hostnames --- modules/extra/m_dnsbl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index 4be489aa7..e84c72e97 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -62,8 +62,8 @@ class DNSBLResolver : public DNSRequest reason = reason.replace_all_cs("%N", Config->NetworkName); BotInfo *operserv = findbot(Config->OperServ); - Log(operserv) << "DNSBL: " << user->GetMask() << " appears in " << this->blacklist.name; - XLine *x = new XLine("*@" + user->host, Config->OperServ, Anope::CurTime + this->blacklist.bantime, reason, XLineManager::GenerateUID()); + Log(operserv) << "DNSBL: " << user->GetMask() << " (" << user->ip.addr() << ") appears in " << this->blacklist.name; + XLine *x = new XLine("*@" + user->ip.addr(), Config->OperServ, Anope::CurTime + this->blacklist.bantime, reason, XLineManager::GenerateUID()); if (this->add_to_akill && akills) { akills->AddXLine(x);