about summary refs log tree commit diff stats
path: root/src/command/commands.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-22 16:37:05 +0000
committerJames Booth <boothj5@gmail.com>2015-11-22 16:37:05 +0000
commit0f22179eef2c5b88b3fa30c76a09308987376d0c (patch)
treec34260af36dda7a6cc5ad6f2bd445bf890199b53 /src/command/commands.c
parent0a0226186a95209f5c83be335abae7ea52e43bcd (diff)
downloadprofani-tty-0f22179eef2c5b88b3fa30c76a09308987376d0c.tar.gz
Added /roster resource join
Diffstat (limited to 'src/command/commands.c')
-rw-r--r--src/command/commands.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/command/commands.c b/src/command/commands.c
index 4bc1f880..d352fd5a 100644
--- a/src/command/commands.c
+++ b/src/command/commands.c
@@ -1761,6 +1761,17 @@ cmd_roster(ProfWin *window, const char *const command, gchar **args)
             return res;
         }
 
+    // roster join with previous line
+    } else if (g_strcmp0(args[0], "resource") == 0) {
+        if (g_strcmp0(args[1], "join") == 0) {
+            int res =  _cmd_set_boolean_preference(args[2], command, "Roster join", PREF_ROSTER_RESOURCE_JOIN);
+            rosterwin_roster();
+            return res;
+        } else {
+            cons_bad_cmd_usage(command);
+            return TRUE;
+        }
+
     // set header character
     } else if (g_strcmp0(args[0], "char") == 0) {
         if (g_strcmp0(args[1], "header") == 0) {