Added /roster resource join

This commit is contained in:
James Booth
2015-11-22 16:37:05 +00:00
parent 0a0226186a
commit 0f22179eef
5 changed files with 79 additions and 17 deletions

View File

@@ -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) {