Allow utf8 in occupants header char
This commit is contained in:
@@ -1354,11 +1354,13 @@ cons_occupants_setting(void)
|
||||
int size = prefs_get_occupants_size();
|
||||
cons_show("Occupants size (/occupants) : %d", size);
|
||||
|
||||
char header_ch = prefs_get_occupants_header_char();
|
||||
if (header_ch)
|
||||
cons_show("Occupants header char (/occupants) : %c", header_ch);
|
||||
else
|
||||
char* header_ch = prefs_get_occupants_header_char();
|
||||
if (header_ch) {
|
||||
cons_show("Occupants header char (/occupants) : %s", header_ch);
|
||||
free(header_ch);
|
||||
} else {
|
||||
cons_show("Occupants header char (/occupants) : none");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -131,9 +131,10 @@ occupantswin_occupants(const char* const roomjid)
|
||||
|
||||
GString* prefix = g_string_new(" ");
|
||||
|
||||
char ch = prefs_get_occupants_header_char();
|
||||
char* ch = prefs_get_occupants_header_char();
|
||||
if (ch) {
|
||||
g_string_append_printf(prefix, "%c", ch);
|
||||
g_string_append_printf(prefix, "%s", ch);
|
||||
free(ch);
|
||||
}
|
||||
|
||||
if (prefs_get_boolean(PREF_MUC_PRIVILEGES)) {
|
||||
|
||||
Reference in New Issue
Block a user