summaryrefslogtreecommitdiff
path: root/src/modules/m_chanhistory.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-06-12 21:46:07 +0100
committerPeter Powell <petpow@saberuk.com>2019-06-12 21:52:58 +0100
commit9433e34b2133d8f1e77fea15447ba4d0259a5fb0 (patch)
tree8e6bb357472f2e39c31c82053a1d02d4b1f7460d /src/modules/m_chanhistory.cpp
parent938837af9fe92d0fef811db96a5e9d6bf8e3ae11 (diff)
Show the mode syntax in ERR_INVALIDMODEPARAM.
Diffstat (limited to 'src/modules/m_chanhistory.cpp')
-rw-r--r--src/modules/m_chanhistory.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_chanhistory.cpp b/src/modules/m_chanhistory.cpp
index ed7bb684f..7db851ee3 100644
--- a/src/modules/m_chanhistory.cpp
+++ b/src/modules/m_chanhistory.cpp
@@ -56,6 +56,7 @@ class HistoryMode : public ParamMode<HistoryMode, SimpleExtItem<HistoryList> >
HistoryMode(Module* Creator)
: ParamMode<HistoryMode, SimpleExtItem<HistoryList> >(Creator, "history", 'H')
{
+ syntax = "<max-messages>:<max-duration>";
}
ModeAction OnSet(User* source, Channel* channel, std::string& parameter) CXX11_OVERRIDE