command: rename /mood clean to /mood clear

As per suggestion of @mdosch.
This commit is contained in:
Michael Vetter
2022-02-01 00:00:32 +01:00
parent f14f9afe03
commit af7a4257f5
3 changed files with 5 additions and 5 deletions

View File

@@ -1063,7 +1063,7 @@ cmd_ac_init(void)
mood_ac = autocomplete_new(); mood_ac = autocomplete_new();
autocomplete_add(mood_ac, "set"); autocomplete_add(mood_ac, "set");
autocomplete_add(mood_ac, "clean"); autocomplete_add(mood_ac, "clear");
mood_type_ac = autocomplete_new(); mood_type_ac = autocomplete_new();
autocomplete_add(mood_type_ac, "afraid"); autocomplete_add(mood_type_ac, "afraid");
autocomplete_add(mood_type_ac, "amazed"); autocomplete_add(mood_type_ac, "amazed");

View File

@@ -2687,16 +2687,16 @@ static struct cmd_t command_defs[] = {
CMD_TAG_CHAT) CMD_TAG_CHAT)
CMD_SYN( CMD_SYN(
"/mood set <mood> [text]", "/mood set <mood> [text]",
"/mood clean") "/mood clear")
CMD_DESC( CMD_DESC(
"Set your mood (XEP-0107).") "Set your mood (XEP-0107).")
CMD_ARGS( CMD_ARGS(
{ "set <mood> <", "Set user mood to <mood> with an optional [text]. Use /mood set <tab> to toggle through predfined moods." }, { "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( CMD_EXAMPLES(
"/mood set happy \"So happy to use Profanity!\"", "/mood set happy \"So happy to use Profanity!\"",
"/mood set amazed", "/mood set amazed",
"/mood clean") "/mood clear")
}, },
// NEXT-COMMAND (search helper) // NEXT-COMMAND (search helper)
}; };

View File

@@ -9658,7 +9658,7 @@ cmd_mood(ProfWin* window, const char* const command, gchar** args)
publish_user_mood(args[1], args[1]); 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."); cons_show("Cleaning your user mood.");
publish_user_mood(NULL, NULL); publish_user_mood(NULL, NULL);
} }