diff options
| author | 2024-07-11 12:50:31 +0100 | |
|---|---|---|
| committer | 2024-07-11 12:50:31 +0100 | |
| commit | 0f3d949bbd04f332ea1370f0d1c50b8515619aaa (patch) | |
| tree | 22b8a09762ba25006c7c89704a49ac290ecea409 /src/modules/m_dnsbl.cpp | |
| parent | Include the network name in the DroneBL example config. (diff) | |
Add URL encoded versions of the DNSBL/network to the dnsbl module.
Diffstat (limited to 'src/modules/m_dnsbl.cpp')
| -rw-r--r-- | src/modules/m_dnsbl.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/modules/m_dnsbl.cpp b/src/modules/m_dnsbl.cpp index c0aa4aa21..ac6666626 100644 --- a/src/modules/m_dnsbl.cpp +++ b/src/modules/m_dnsbl.cpp @@ -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++; |
