1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

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();
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");

View File

@ -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)
};

View File

@ -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);
}