From 0f22179eef2c5b88b3fa30c76a09308987376d0c Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 22 Nov 2015 16:37:05 +0000 Subject: Added /roster resource join --- src/command/commands.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/command/commands.c') 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) { -- cgit 1.4.1-2-gfad0