aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-06-15 22:08:39 +0100
committerGravatar Sadie Powell2022-06-15 22:08:39 +0100
commit30f64f9225f9bdb26f173b4e22bfcbd408ea87d7 (patch)
tree3b493fa7830943c9317d86f87b3409b2cf367cf6
parentFix parsing non-normalised WebSocket headers. (diff)
Fix the parameter documentation for the repeat mode.
-rw-r--r--docs/conf/modules.conf.example2
-rw-r--r--src/modules/m_repeat.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf/modules.conf.example b/docs/conf/modules.conf.example
index 69022ebd8..b1a9ef247 100644
--- a/docs/conf/modules.conf.example
+++ b/docs/conf/modules.conf.example
@@ -1921,7 +1921,7 @@
# Repeat module: Allows to block, kick or ban upon similar messages
# being uttered several times. Provides channel mode +E.
#
-# Syntax: [~|*]<lines>:<sec>[:<difference>][:<backlog>]
+# Syntax: [~|*]<lines>:<duration>[:<difference>][:<backlog>]
# ~ is to block, * is to ban, default is kick.
# lines - In mode 1, the amount of lines that has to match consecutively.
# In mode 2, the size of the backlog to keep for matching.
diff --git a/src/modules/m_repeat.cpp b/src/modules/m_repeat.cpp
index d341080d2..158ab8889 100644
--- a/src/modules/m_repeat.cpp
+++ b/src/modules/m_repeat.cpp
@@ -134,7 +134,7 @@ class RepeatMode : public ParamMode<RepeatMode, SimpleExtItem<ChannelSettings> >
: ParamMode<RepeatMode, SimpleExtItem<ChannelSettings> >(Creator, "repeat", 'E')
, MemberInfoExt("repeat_memb", ExtensionItem::EXT_MEMBERSHIP, Creator)
{
- syntax = "[~|*]<lines>:<sec>[:<difference>][:<backlog>]";
+ syntax = "[~|*]<lines>:<duration>[:<difference>][:<backlog>]";
}
void OnUnset(User* source, Channel* chan) CXX11_OVERRIDE