diff options
| author | 2025-09-30 21:45:55 +0100 | |
|---|---|---|
| committer | 2025-09-30 21:46:44 +0100 | |
| commit | 72f9fa781f236112ca72fd3484315de8cf85e50d (patch) | |
| tree | 3f2b8a3432e7d3343b32d9afdb14160faa70627e /modules/repeat.cpp | |
| parent | Fix some misc issues with the services module. (diff) | |
| parent | Tweak a message to make it clear that its not always an error. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'modules/repeat.cpp')
| -rw-r--r-- | modules/repeat.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/modules/repeat.cpp b/modules/repeat.cpp index adce172be..c611e3cf7 100644 --- a/modules/repeat.cpp +++ b/modules/repeat.cpp @@ -399,7 +399,7 @@ public: void ReadConfig(ConfigStatus& status) override { const auto& tag = ServerInstance->Config->ConfValue("repeat"); - rm.ms.Message = tag->getString("message", "Repeat flood detected (trigger is %lines% messages in %duration%)", 1); + rm.ms.Message = tag->getString("message", "Repeat flood detected (trigger is %lines% messages in %duration.long%)", 1); rm.ms.MaxBacklog = tag->getNum<unsigned long>("maxbacklog", 20); rm.ms.MaxDiff = tag->getNum<unsigned int>("maxdistance", 50, 0, 100); rm.ms.MaxLines = tag->getNum<unsigned long>("maxlines", 20); @@ -432,11 +432,12 @@ 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) }, - { "seconds", ConvToStr(settings->Seconds) }, + { "channel", chan->name }, + { "diff", ConvToStr(settings->Diff) }, + { "duration", Duration::ToString(settings->Seconds) }, + { "duration.long", Duration::ToLongString(settings->Seconds) }, + { "lines", ConvToStr(settings->Lines) }, + { "seconds", ConvToStr(settings->Seconds) }, }); switch (settings->Action) |
