mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 01:29:03 -05:00
Add URL encoded versions of the DNSBL/network to the dnsbl module.
This commit is contained in:
parent
f49ed93cd9
commit
0f3d949bbd
@ -8,4 +8,4 @@
|
||||
records="3,5,6,7,8,9,10,11,13,14,15,16,17,19"
|
||||
action="zline"
|
||||
duration="7d"
|
||||
reason="You are listed in DroneBL. Please visit https://dronebl.org/lookup.do?ip=%ip%&network=%network% for more information.">
|
||||
reason="You are listed in DroneBL. Please visit https://dronebl.org/lookup.do?ip=%ip%&network=%network.url% for more information.">
|
||||
|
@ -366,10 +366,12 @@ public:
|
||||
if (match)
|
||||
{
|
||||
const std::string reason = Template::Replace(config->reason, {
|
||||
{ "dnsbl", config->name },
|
||||
{ "ip", them->GetAddress() },
|
||||
{ "network", ServerInstance->Config->Network },
|
||||
{ "result", ConvToStr(result) },
|
||||
{ "dnsbl", config->name },
|
||||
{ "dnsbl.url", Percent::Encode(config->name) },
|
||||
{ "ip", them->GetAddress() },
|
||||
{ "network", ServerInstance->Config->Network },
|
||||
{ "network.url", Percent::Encode(ServerInstance->Config->Network) },
|
||||
{ "result", ConvToStr(result) },
|
||||
});
|
||||
|
||||
config->stats_hits++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user