diff options
author | James Booth <boothj5@gmail.com> | 2014-09-12 00:21:28 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2014-09-12 00:21:28 +0100 |
commit | 38959e0c33f292a7824aeb64ddb6f5e2b2831206 (patch) | |
tree | eb0988ad904ea8a8d79e105cf78ad1be5dc27fa7 /src/command/command.c | |
parent | 42a14d018274d2ab306e95765a735ee25aafa6ee (diff) | |
download | profani-tty-38959e0c33f292a7824aeb64ddb6f5e2b2831206.tar.gz |
Added setting of *-single room config values
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/command/command.c b/src/command/command.c index 75808847..5b78d3e7 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -305,14 +305,16 @@ static struct cmd_t command_defs[] = NULL } } }, { "/room", - cmd_room, parse_args, 1, 1, NULL, - { "/room config accept|destroy|edit|cancel", "Room configuration.", - { "/room config accept|destroy|edit|cancel", - "---------------------------------------", + cmd_room, parse_args, 1, 3, NULL, + { "/room config accept|destroy|config|submit|cancel [tag value]", "Room configuration.", + { "/room config accept|destroy|config|submit|cancel [tag value]", + "------------------------------------------------------------", "config accept - Accept default room configuration.", "config destroy - Cancel default room configuration.", - "config edit - Edit room configuration.", + "config config - Edit room configuration.", + "config submit - Cancel room configuration.", "config cancel - Cancel room configuration.", + "config set tag value - Set room configuration field to value.", NULL } } }, { "/rooms", @@ -1213,6 +1215,7 @@ cmd_init(void) autocomplete_add(room_ac, "config"); autocomplete_add(room_ac, "submit"); autocomplete_add(room_ac, "cancel"); + autocomplete_add(room_ac, "set"); cmd_history_init(); } |