XEP-0107: User Mood - Clean mood

* Bugfix in mood_autocomplete (wrong parameter)
 * Implemented /mood clean
 ______________________________________
/ Profanity! THE XMPP client with mood \
\ support!                             /
 --------------------------------------
   \
    \
        .--.
       |o_o |
       |:_/ |
      //   \ \
     (|     | )
    /'\_   _/`\
    \___)=(___/
This commit is contained in:
Stefan Kropp
2022-01-29 06:55:00 +01:00
committed by Michael Vetter
parent b1929068ff
commit 7a4cfc14d1
4 changed files with 22 additions and 14 deletions

View File

@@ -2680,20 +2680,23 @@ static struct cmd_t command_defs[] = {
},
{ "/mood",
parse_args, 2, 3, NULL,
parse_args, 1, 3, NULL,
CMD_NOSUBFUNCS
CMD_MAINFUNC(cmd_mood)
CMD_TAGS(
CMD_TAG_CHAT)
CMD_SYN(
"/mood set <mood> [text]")
"/mood set <mood> [text]",
"/mood clean")
CMD_DESC(
"Set your mood (XEP-0107). Use tab to switch through predefined moods.")
CMD_ARGS(
{ "set <mood>", "Setting your mood." },
{ "<text>", "Additional Text." })
{ "<text>", "Additional Text." },
{ "clean", "Clean your user mood." })
CMD_EXAMPLES(
"/mood set happy \"So happy to use Profanity!\"")
"/mood set happy \"So happy to use Profanity!\"",
"/mood clean")
},
// NEXT-COMMAND (search helper)
};