mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 07:16:22 +00:00
Allow utf8 in roster private char
This commit is contained in:
@@ -1511,11 +1511,13 @@ cons_roster_setting(void)
|
||||
else
|
||||
cons_show("Roster room private char (/roster) : none");
|
||||
|
||||
char private_ch = prefs_get_roster_private_char();
|
||||
if (private_ch)
|
||||
char* private_ch = prefs_get_roster_private_char();
|
||||
if (private_ch) {
|
||||
cons_show("Roster private char (/roster) : %c", private_ch);
|
||||
else
|
||||
free(private_ch);
|
||||
} else {
|
||||
cons_show("Roster private char (/roster) : none");
|
||||
}
|
||||
|
||||
gint contact_indent = prefs_get_roster_contact_indent();
|
||||
cons_show("Roster contact indent (/roster) : %d", contact_indent);
|
||||
|
||||
@@ -951,9 +951,10 @@ _rosterwin_private_chats(ProfLayoutSplit* layout, GList* orphaned_privchats)
|
||||
g_string_append_printf(privmsg, "(%d) ", privwin->unread);
|
||||
}
|
||||
|
||||
char ch = prefs_get_roster_private_char();
|
||||
char* ch = prefs_get_roster_private_char();
|
||||
if (ch) {
|
||||
g_string_append_printf(privmsg, "%c", ch);
|
||||
g_string_append_printf(privmsg, "%s", ch);
|
||||
free(ch);
|
||||
}
|
||||
|
||||
g_string_append(privmsg, privwin->fulljid);
|
||||
|
||||
Reference in New Issue
Block a user