mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-21 22:06:21 +00:00
Add occupants char
`/occupants char` now sets a character that is displayed before the nick in MUCs. Similar like `/roster char` is displaying a char for the roster. Regards #690
This commit is contained in:
@@ -1237,6 +1237,12 @@ cons_occupants_setting(void)
|
||||
else
|
||||
cons_show("Occupants wrap (/occupants) : OFF");
|
||||
|
||||
char occupants_ch = prefs_get_occupants_char();
|
||||
if (occupants_ch)
|
||||
cons_show("Occupants char (/occupants) : %c", occupants_ch);
|
||||
else
|
||||
cons_show("Occupants char (/occupants) : none");
|
||||
|
||||
gint occupant_indent = prefs_get_occupants_indent();
|
||||
cons_show("Occupant indent (/occupants) : %d", occupant_indent);
|
||||
|
||||
|
||||
@@ -60,6 +60,11 @@ _occuptantswin_occupant(ProfLayoutSplit *layout, Occupant *occupant, gboolean sh
|
||||
|
||||
GString *msg = g_string_new(spaces->str);
|
||||
|
||||
char ch = prefs_get_occupants_char();
|
||||
if (ch) {
|
||||
g_string_append_printf(msg, "%c", ch);
|
||||
}
|
||||
|
||||
gboolean wrap = prefs_get_boolean(PREF_OCCUPANTS_WRAP);
|
||||
|
||||
g_string_append(msg, occupant->nick);
|
||||
|
||||
Reference in New Issue
Block a user