diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-02-01 00:00:32 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2022-02-01 00:00:32 +0100 |
commit | af7a4257f5c60a467ea69963ce663f6817e626f6 (patch) | |
tree | 7978eaa7ee3169fe631cb1f6914f18c52b5f6066 | |
parent | f14f9afe038aaf2e1d74484cc94501068d75301f (diff) | |
download | profani-tty-af7a4257f5c60a467ea69963ce663f6817e626f6.tar.gz |
command: rename /mood clean to /mood clear
As per suggestion of @mdosch.
-rw-r--r-- | src/command/cmd_ac.c | 2 | ||||
-rw-r--r-- | src/command/cmd_defs.c | 6 | ||||
-rw-r--r-- | src/command/cmd_funcs.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/command/cmd_ac.c b/src/command/cmd_ac.c index 57576967..81597a2d 100644 --- a/src/command/cmd_ac.c +++ b/src/command/cmd_ac.c @@ -1063,7 +1063,7 @@ cmd_ac_init(void) mood_ac = autocomplete_new(); autocomplete_add(mood_ac, "set"); - autocomplete_add(mood_ac, "clean"); + autocomplete_add(mood_ac, "clear"); mood_type_ac = autocomplete_new(); autocomplete_add(mood_type_ac, "afraid"); autocomplete_add(mood_type_ac, "amazed"); diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index 4af09204..359f47d0 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2687,16 +2687,16 @@ static struct cmd_t command_defs[] = { CMD_TAG_CHAT) CMD_SYN( "/mood set <mood> [text]", - "/mood clean") + "/mood clear") CMD_DESC( "Set your mood (XEP-0107).") CMD_ARGS( { "set <mood> <", "Set user mood to <mood> with an optional [text]. Use /mood set <tab> to toggle through predfined moods." }, - { "clean", "Clean your user mood." }) + { "clear", "Clear your user mood." }) CMD_EXAMPLES( "/mood set happy \"So happy to use Profanity!\"", "/mood set amazed", - "/mood clean") + "/mood clear") }, // NEXT-COMMAND (search helper) }; diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index 14a36ab9..13a40ebf 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -9658,7 +9658,7 @@ cmd_mood(ProfWin* window, const char* const command, gchar** args) publish_user_mood(args[1], args[1]); } } - } else if (g_strcmp0(args[0], "clean") == 0) { + } else if (g_strcmp0(args[0], "clear") == 0) { cons_show("Cleaning your user mood."); publish_user_mood(NULL, NULL); } |