diff options
author | Adam <Adam@anope.org> | 2010-09-19 16:20:56 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-09-19 16:20:56 -0400 |
commit | f8ee95ef989b83d9af7f802a25a8c7d9f81dd116 (patch) | |
tree | 544f41f56d1eb5df8d29d61478bbb3e10bf1ce30 /modules | |
parent | 1e3d2f3739ceaddabb0b1255a840e4d6ffbd6e66 (diff) |
Added some more variable fields for dnsbl akill reasons
Diffstat (limited to 'modules')
-rw-r--r-- | modules/extra/m_dnsbl.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/extra/m_dnsbl.cpp b/modules/extra/m_dnsbl.cpp index 6360c3753..d123fd974 100644 --- a/modules/extra/m_dnsbl.cpp +++ b/modules/extra/m_dnsbl.cpp @@ -33,8 +33,11 @@ class DNSBLResolver : public DNSRequest 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("%n", user->nick); + reason = reason.replace_all_ci("%u", user->GetIdent()); + reason = reason.replace_all_ci("%r", user->realname); reason = reason.replace_all_ci("%h", user->host); + reason = reason.replace_all_ci("%i", user->ip.addr()); XLine *x = NULL; if (this->add_to_akill && SGLine && (x = SGLine->Add(NULL, NULL, Anope::string("*@") + user->host, Anope::CurTime + this->blacklist.bantime, reason))) |