From 2f3de0eb0da2792e6e4f0cade0acfea5af9ab370 Mon Sep 17 00:00:00 2001 From: DebXWoody Date: Sun, 17 Oct 2021 20:41:11 +0200 Subject: xep-0107: code review * Remarks in the Merge Request (ac_reset, help) * Defines in iq.c * Mood help and null check * Added additional information about tab key in CMD_DESC. * Added additional null check --- src/command/cmd_defs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/command/cmd_defs.c') diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index fc4c8dca..4ceb8193 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2688,9 +2688,12 @@ static struct cmd_t command_defs[] = { CMD_SYN( "/mood set [\"Text\"]") CMD_DESC( - "Set your mood") - CMD_NOARGS - CMD_NOEXAMPLES + "Set your mood. Use the tab key to switch through the available moods") + CMD_ARGS( + { "set ", "Your mood" }, + { "", "Additional Text" }) + CMD_EXAMPLES( + "/mood set happy \"I'm happy\"") }, // NEXT-COMMAND (search helper) }; -- cgit 1.4.1-2-gfad0