mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 17:46:21 +00:00
Added /roster show|hide contacts
This commit is contained in:
@@ -2181,6 +2181,13 @@ cmd_roster(ProfWin *window, const char *const command, gchar **args)
|
||||
rosterwin_roster();
|
||||
}
|
||||
return TRUE;
|
||||
} else if (g_strcmp0(args[1], "contacts") == 0) {
|
||||
cons_show("Roster contacts enabled");
|
||||
prefs_set_boolean(PREF_ROSTER_CONTACTS, TRUE);
|
||||
if (conn_status == JABBER_CONNECTED) {
|
||||
rosterwin_roster();
|
||||
}
|
||||
return TRUE;
|
||||
} else if (g_strcmp0(args[1], "rooms") == 0) {
|
||||
cons_show("Roster rooms enabled");
|
||||
prefs_set_boolean(PREF_ROSTER_ROOMS, TRUE);
|
||||
@@ -2249,6 +2256,13 @@ cmd_roster(ProfWin *window, const char *const command, gchar **args)
|
||||
rosterwin_roster();
|
||||
}
|
||||
return TRUE;
|
||||
} else if (g_strcmp0(args[1], "contacts") == 0) {
|
||||
cons_show("Roster contacts disabled");
|
||||
prefs_set_boolean(PREF_ROSTER_CONTACTS, FALSE);
|
||||
if (conn_status == JABBER_CONNECTED) {
|
||||
rosterwin_roster();
|
||||
}
|
||||
return TRUE;
|
||||
} else if (g_strcmp0(args[1], "rooms") == 0) {
|
||||
cons_show("Roster rooms disabled");
|
||||
prefs_set_boolean(PREF_ROSTER_ROOMS, FALSE);
|
||||
|
||||
Reference in New Issue
Block a user