diff options
author | James Booth <boothj5@gmail.com> | 2015-11-21 21:49:12 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-21 21:49:12 +0000 |
commit | ef0f093efde451ff9c73e304bf50020385942d55 (patch) | |
tree | 52917b2ec14dbcd82eb2929e97b0e22c5c6b4765 /src/command/command.c | |
parent | f54c2e8ecab9134eca315313bfd269a0261e4763 (diff) | |
download | profani-tty-ef0f093efde451ff9c73e304bf50020385942d55.tar.gz |
Added /roster indent resource
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/command.c b/src/command/command.c index 47cc7d9b..aaf0c555 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -281,6 +281,7 @@ static struct cmd_t command_defs[] = "/roster char header <char>|none", "/roster char contact <char>|none", "/roster indent contact <indent>", + "/roster indent resource <indent>", "/roster size <percent>", "/roster add <jid> [<nick>]", "/roster remove <jid>", @@ -318,6 +319,7 @@ static struct cmd_t command_defs[] = { "char contact <char>", "Prefix roster contacts with specificed character." }, { "char contact none", "Remove roster contact character prefix." }, { "indent contact <indent>", "Indent contact line by <indent> spaces." }, + { "indent resource <indent>", "Indent roster line by <indent> spaces." }, { "size <precent>", "Percentage of the screen taken up by the roster (1-99)." }, { "add <jid> [<nick>]", "Add a new item to the roster." }, { "remove <jid>", "Removes an item from the roster." }, @@ -2047,6 +2049,7 @@ cmd_init(void) roster_indent_ac = autocomplete_new(); autocomplete_add(roster_indent_ac, "contact"); + autocomplete_add(roster_indent_ac, "resource"); roster_option_ac = autocomplete_new(); autocomplete_add(roster_option_ac, "offline"); |