Added roster.rooms.private.char setting

This commit is contained in:
James Booth
2016-01-31 20:17:20 +00:00
parent dd250c6799
commit a00095c8a9
10 changed files with 119 additions and 42 deletions

View File

@@ -2547,6 +2547,24 @@ cmd_roster(ProfWin *window, const char *const command, gchar **args)
cons_bad_cmd_usage(command);
return TRUE;
}
} else if (g_strcmp0(args[1], "private") == 0) {
if (g_strcmp0(args[2], "char") == 0) {
if (!args[3]) {
cons_bad_cmd_usage(command);
} else if (g_strcmp0(args[3], "none") == 0) {
prefs_clear_roster_room_private_char();
cons_show("Roster room private char removed.");
rosterwin_roster();
} else {
prefs_set_roster_room_private_char(args[3][0]);
cons_show("Roster room private char set to %c.", args[3][0]);
rosterwin_roster();
}
return TRUE;
} else {
cons_bad_cmd_usage(command);
return TRUE;
}
} else {
cons_bad_cmd_usage(command);
return TRUE;