mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
command: rename /mood clean to /mood clear
As per suggestion of @mdosch.
This commit is contained in:
parent
f14f9afe03
commit
af7a4257f5
@ -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");
|
||||
|
@ -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)
|
||||
};
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user