about summary refs log tree commit diff stats
path: root/src/command/command.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-01-02 01:37:03 +0000
committerJames Booth <boothj5@gmail.com>2016-01-02 01:37:03 +0000
commit254c83d2d16037b22c060ed57d3c31de82f4750a (patch)
tree6c74f5fa0ee88797b68065198a965c0e9ff33ec4 /src/command/command.c
parentcf80fdc32952fde5873aab0b00edabfd5bdd544b (diff)
downloadprofani-tty-254c83d2d16037b22c060ed57d3c31de82f4750a.tar.gz
Added /roster show|hide rooms
Diffstat (limited to 'src/command/command.c')
-rw-r--r--src/command/command.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/command/command.c b/src/command/command.c
index 36579990..5a7f4ca7 100644
--- a/src/command/command.c
+++ b/src/command/command.c
@@ -276,8 +276,8 @@ static struct cmd_t command_defs[] =
         CMD_SYN(
             "/roster",
             "/roster online",
-            "/roster show [offline|resource|presence|status|empty|count|priority]",
-            "/roster hide [offline|resource|presence|status|empty|count|priority]",
+            "/roster show [offline|resource|presence|status|empty|count|priority|rooms]",
+            "/roster hide [offline|resource|presence|status|empty|count|priority|rooms]",
             "/roster by group|presence|none",
             "/roster order name|presence",
             "/roster header char <char>|none",
@@ -307,6 +307,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 rooms",                 "Show chat rooms in roster panel." },
             { "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." },
@@ -315,6 +316,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 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." },
             { "by none",                    "No grouping in the roster panel." },
@@ -2167,6 +2169,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, "rooms");
 
     roster_by_ac = autocomplete_new();
     autocomplete_add(roster_by_ac, "group");