Added /subject prepend <text>

This commit is contained in:
James Booth
2015-10-29 21:02:46 +00:00
parent 86354a2bc5
commit f3c65496c7
2 changed files with 24 additions and 4 deletions

View File

@@ -561,14 +561,16 @@ static struct cmd_t command_defs[] =
CMD_TAG_GROUPCHAT)
CMD_SYN(
"/subject set <subject>",
"/subject prepend <text>",
"/subject append <text>",
"/subject clear")
CMD_DESC(
"Set, append to, or clear room subject.")
"Set, modify, 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." })
{ "set <subject>", "Set the room subject." },
{ "prepend <text>", "Prepend text to the current room subject, use double quotes if a trailing space is needed." },
{ "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
},
@@ -2137,6 +2139,7 @@ cmd_init(void)
subject_ac = autocomplete_new();
autocomplete_add(subject_ac, "set");
autocomplete_add(subject_ac, "prepend");
autocomplete_add(subject_ac, "append");
autocomplete_add(subject_ac, "clear");