Add %channel% to the messageflood and repeat module templates.

This commit is contained in:
Sadie Powell 2024-09-28 18:23:50 +01:00
parent 88c28f5256
commit 1061dbeb11
2 changed files with 2 additions and 0 deletions

View File

@ -298,6 +298,7 @@ public:
f->Clear(user);
const std::string msg = Template::Replace(message, {
{ "channel", dest->name },
{ "duration", Duration::ToString(f->period) },
{ "messages", ConvToStr(f->messages) },
{ "seconds", ConvToStr(f->period) },

View File

@ -476,6 +476,7 @@ public:
if (rm.MatchLine(memb, settings, details.text))
{
const std::string message = Template::Replace(rm.ms.Message, {
{ "channel", chan->name },
{ "diff", ConvToStr(settings->Diff) },
{ "duration", Duration::ToString(settings->Seconds) },
{ "lines", ConvToStr(settings->Lines) },