mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Add %channel% to the messageflood and repeat module templates.
This commit is contained in:
parent
88c28f5256
commit
1061dbeb11
@ -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) },
|
||||
|
@ -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) },
|
||||
|
Loading…
x
Reference in New Issue
Block a user