mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 14:46:20 +00:00
Added /roster char resource
This commit is contained in:
@@ -1255,6 +1255,12 @@ cons_roster_setting(void)
|
||||
else
|
||||
cons_show("Roster contact char (/roster) : none");
|
||||
|
||||
char resource_ch = prefs_get_roster_resource_char();
|
||||
if (resource_ch)
|
||||
cons_show("Roster resource char (/roster) : %c", resource_ch);
|
||||
else
|
||||
cons_show("Roster resource char (/roster) : none");
|
||||
|
||||
gint contact_indent = prefs_get_roster_contact_indent();
|
||||
cons_show("Roster contact indent (/roster) : %d", contact_indent);
|
||||
|
||||
|
||||
@@ -148,6 +148,10 @@ _rosterwin_resources(ProfLayoutSplit *layout, PContact contact, int current_inde
|
||||
g_string_append(msg, " ");
|
||||
this_indent--;
|
||||
}
|
||||
char ch = prefs_get_roster_resource_char();
|
||||
if (ch) {
|
||||
g_string_append_printf(msg, "%c", ch);
|
||||
}
|
||||
g_string_append(msg, resource->name);
|
||||
if (prefs_get_boolean(PREF_ROSTER_PRIORITY)) {
|
||||
g_string_append_printf(msg, " %d", resource->priority);
|
||||
|
||||
Reference in New Issue
Block a user