mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04: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"
|
records="3,5,6,7,8,9,10,11,13,14,15,16,17,19"
|
||||||
action="zline"
|
action="zline"
|
||||||
duration="7d"
|
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)
|
if (match)
|
||||||
{
|
{
|
||||||
const std::string reason = Template::Replace(config->reason, {
|
const std::string reason = Template::Replace(config->reason, {
|
||||||
{ "dnsbl", config->name },
|
{ "dnsbl", config->name },
|
||||||
{ "ip", them->GetAddress() },
|
{ "dnsbl.url", Percent::Encode(config->name) },
|
||||||
{ "network", ServerInstance->Config->Network },
|
{ "ip", them->GetAddress() },
|
||||||
{ "result", ConvToStr(result) },
|
{ "network", ServerInstance->Config->Network },
|
||||||
|
{ "network.url", Percent::Encode(ServerInstance->Config->Network) },
|
||||||
|
{ "result", ConvToStr(result) },
|
||||||
});
|
});
|
||||||
|
|
||||||
config->stats_hits++;
|
config->stats_hits++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user