about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-10-29 21:02:46 +0000
committerJames Booth <boothj5@gmail.com>2015-10-29 21:02:46 +0000
commitf3c65496c7d442d2120081937ca79814b49a56ea (patch)
tree004d1f6711350bb025a34d0dd5d8fe222c6d8623 /src/command/command.c
parent86354a2bc5edf9552b0d173d92ad3104476b343f (diff)
downloadprofani-tty-f3c65496c7d442d2120081937ca79814b49a56ea.tar.gz
Added /subject prepend <text>
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c11
1 files changed, 7 insertions, 4 deletions
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>",
+            "/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");