summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby <robby@chatbelgie.be>2019-05-05 06:25:44 +0200
committerPeter Powell <petpow@saberuk.com>2019-05-05 05:29:04 +0100
commit574c994c72ee3acb447218ba972c046f38ff60fd (patch)
tree3565896b01dfcbba6b72de9bc81cc97c9a669b5c
parentf852e2d7fe26caca16abccb1bfe0611b75e5ba8e (diff)
cmd_names: Fix the syntax.
-rw-r--r--docs/conf/helpop.conf.example2
-rw-r--r--src/coremods/core_channel/cmd_names.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/conf/helpop.conf.example b/docs/conf/helpop.conf.example
index e12508659..aa63da185 100644
--- a/docs/conf/helpop.conf.example
+++ b/docs/conf/helpop.conf.example
@@ -220,7 +220,7 @@ Sends a notice to a user or channel specified in <target>.">
Joins one or more channels you provide the names for.">
-<helpop key="names" value="/NAMES <channel>[,<channel>]+
+<helpop key="names" value="/NAMES [<channel>[,<channel>]+]
Return a list of users on the channel(s) you provide.">
diff --git a/src/coremods/core_channel/cmd_names.cpp b/src/coremods/core_channel/cmd_names.cpp
index b5cd98ec8..d50370246 100644
--- a/src/coremods/core_channel/cmd_names.cpp
+++ b/src/coremods/core_channel/cmd_names.cpp
@@ -29,7 +29,7 @@ CommandNames::CommandNames(Module* parent)
, invisiblemode(parent, "invisible")
, namesevprov(parent, "event/names")
{
- syntax = "<channel>[,<channel>]+";
+ syntax = "[<channel>[,<channel>]+]";
}
/** Handle /NAMES