From f3c65496c7d442d2120081937ca79814b49a56ea Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 29 Oct 2015 21:02:46 +0000 Subject: Added /subject prepend --- src/command/command.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/command/command.c') diff --git a/src/command/command.c b/src/command/command.c index 375d1b26..76890725 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -561,14 +561,16 @@ static struct cmd_t command_defs[] = CMD_TAG_GROUPCHAT) CMD_SYN( "/subject set ", + "/subject prepend ", "/subject append ", "/subject clear") CMD_DESC( - "Set, append to, or clear room subject.") + "Set, modify, or clear room subject.") CMD_ARGS( - { "set ", "Set the room subject." }, - { "append ", "Append text to the current room subject, use double quotes if a preceeding space is needed." }, - { "clear", "Clear the room subject." }) + { "set ", "Set the room subject." }, + { "prepend ", "Prepend text to the current room subject, use double quotes if a trailing space is needed." }, + { "append ", "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"); -- cgit 1.4.1-2-gfad0