From 8e84d160e6a7eded077be3e32012e9725961a0cd Mon Sep 17 00:00:00 2001 From: James Booth Date: Wed, 18 Nov 2015 02:14:11 +0000 Subject: Added option to show resource priority in roster --- src/command/command.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/command/command.c') diff --git a/src/command/command.c b/src/command/command.c index 1057084c..a7f0d718 100644 --- a/src/command/command.c +++ b/src/command/command.c @@ -274,8 +274,8 @@ static struct cmd_t command_defs[] = CMD_SYN( "/roster", "/roster online", - "/roster show [offline|resource|presence|status|empty|count]", - "/roster hide [offline|resource|presence|status|empty|count]", + "/roster show [offline|resource|presence|status|empty|count|priority]", + "/roster hide [offline|resource|presence|status|empty|count|priority]", "/roster by group|presence|none", "/roster order name|presence" "/roster size ", @@ -296,6 +296,7 @@ static struct cmd_t command_defs[] = { "show status", "Show contact's status message in the roster panel." }, { "show empty", "When grouping by presence, show empty presence groups." }, { "show count", "Show number of contacts in group/presence." }, + { "show priority", "Show resource priority." }, { "hide", "Hide the roster panel." }, { "hide offline", "Hide offline contacts in the roster panel." }, { "hide resource", "Hide contact's connected resources in the roster panel." }, @@ -303,6 +304,7 @@ static struct cmd_t command_defs[] = { "hide status", "Hide contact's status message in the roster panel." }, { "hide empty", "When grouping by presence, hide empty presence groups." }, { "hide count", "Hide number of contacts in group/presence." }, + { "hide priority", "Hide resource priority." }, { "by group", "Group contacts in the roster panel by roster group." }, { "by presence", "Group contacts in the roster panel by presence." }, { "by none", "No grouping in the roster panel." }, @@ -2030,6 +2032,7 @@ cmd_init(void) autocomplete_add(roster_option_ac, "status"); autocomplete_add(roster_option_ac, "empty"); autocomplete_add(roster_option_ac, "count"); + autocomplete_add(roster_option_ac, "priority"); roster_by_ac = autocomplete_new(); autocomplete_add(roster_by_ac, "group"); -- cgit 1.4.1-2-gfad0