summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-12-19 15:41:14 -0500
committerAdam <Adam@anope.org>2011-12-19 15:41:14 -0500
commit03119f2aa98e607c536b69ddd9917786d1b54cf2 (patch)
tree5d1e382ee576bc588bdfa6e9d8c2b638754a14fb
parent45fc3ce1c41b06af6e03712988870ead95b72435 (diff)
Made m_dnsbl ban IPs not hostnames
-rw-r--r--modules/extra/m_dnsbl.cpp4
1 files 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);