Add win_append

This commit is contained in:
James Booth
2016-10-15 19:53:49 +01:00
parent 711c5b8e45
commit ce5f07a012
6 changed files with 110 additions and 87 deletions

View File

@@ -794,10 +794,10 @@ ui_room_join(const char *const roomjid, gboolean focus)
char *role = muc_role_str(roomjid);
char *affiliation = muc_affiliation_str(roomjid);
if (role) {
win_printf(window, '!', 0, NULL, NO_DATE | NO_EOL, THEME_ROOMINFO, "", ", role: %s", role);
win_append(window, THEME_ROOMINFO, ", role: %s", role);
}
if (affiliation) {
win_printf(window, '!', 0, NULL, NO_DATE | NO_EOL, THEME_ROOMINFO, "", ", affiliation: %s", affiliation);
win_append(window, THEME_ROOMINFO, ", affiliation: %s", affiliation);
}
}
win_appendln(window, THEME_ROOMINFO, "");