Added /subject append <text>

This commit is contained in:
James Booth
2015-10-29 20:55:37 +00:00
parent 4e6ea6ad1b
commit 86354a2bc5
3 changed files with 22 additions and 2 deletions

View File

@@ -561,11 +561,13 @@ static struct cmd_t command_defs[] =
CMD_TAG_GROUPCHAT)
CMD_SYN(
"/subject set <subject>",
"/subject append <text>",
"/subject clear")
CMD_DESC(
"Set or clear room subject.")
"Set, append to, or clear room subject.")
CMD_ARGS(
{ "set <subject>", "Set the room subject." },
{ "append <text>", "Append text to the current room subject, use double quotes if a preceeding space is needed." },
{ "clear", "Clear the room subject." })
CMD_NOEXAMPLES
},
@@ -2135,6 +2137,7 @@ cmd_init(void)
subject_ac = autocomplete_new();
autocomplete_add(subject_ac, "set");
autocomplete_add(subject_ac, "append");
autocomplete_add(subject_ac, "clear");
form_ac = autocomplete_new();