diff options
author | James Booth <boothj5@gmail.com> | 2016-01-20 01:48:41 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2016-01-20 01:48:41 +0000 |
commit | 5bccee93cc0c8c2426d5f5acc462dca15467cb08 (patch) | |
tree | e96737b02a68115dfb15ca588772241d7cc7de99 /src/command/command.c | |
parent | 10507b687b21a6827f0a60d6c92a778bdc91070b (diff) | |
download | profani-tty-5bccee93cc0c8c2426d5f5acc462dca15467cb08.tar.gz |
Added /roster show|hide contacts
Diffstat (limited to 'src/command/command.c')
-rw-r--r-- | src/command/command.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/command.c b/src/command/command.c index 9052e8cf..8bda6d4b 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -278,8 +278,8 @@ static struct cmd_t command_defs[] = CMD_SYN( "/roster", "/roster online", - "/roster show [offline|resource|presence|status|empty|count|priority|rooms]", - "/roster hide [offline|resource|presence|status|empty|count|priority|rooms]", + "/roster show [offline|resource|presence|status|empty|count|priority|contacts|rooms]", + "/roster hide [offline|resource|presence|status|empty|count|priority|contacts|rooms]", "/roster by group|presence|none", "/roster order name|presence", "/roster unread before|after|off", @@ -313,6 +313,7 @@ static struct cmd_t command_defs[] = { "show empty", "When grouping by presence, show empty presence groups." }, { "show count", "Show number of contacts in group/presence." }, { "show priority", "Show resource priority." }, + { "show contacts", "Show contacts in roster panel." }, { "show rooms", "Show chat rooms in roster panel." }, { "hide", "Hide the roster panel." }, { "hide offline", "Hide offline contacts in the roster panel." }, @@ -322,6 +323,7 @@ static struct cmd_t command_defs[] = { "hide empty", "When grouping by presence, hide empty presence groups." }, { "hide count", "Hide number of contacts in group/presence." }, { "hide priority", "Hide resource priority." }, + { "hide contacts", "Hide contacts in roster panel." }, { "hide rooms", "Hide chat rooms in roster panel." }, { "by group", "Group contacts in the roster panel by roster group." }, { "by presence", "Group contacts in the roster panel by presence." }, @@ -2215,6 +2217,7 @@ cmd_init(void) autocomplete_add(roster_show_ac, "empty"); autocomplete_add(roster_show_ac, "count"); autocomplete_add(roster_show_ac, "priority"); + autocomplete_add(roster_show_ac, "contacts"); autocomplete_add(roster_show_ac, "rooms"); roster_by_ac = autocomplete_new(); |