mucwin_affiliation_list_error takes ProfMucWin

This commit is contained in:
James Booth
2015-11-02 00:38:26 +00:00
parent 2e81a4efa3
commit d81dbdb233
4 changed files with 11 additions and 10 deletions

View File

@@ -527,13 +527,13 @@ mucwin_broadcast(ProfMucWin *mucwin, const char *const message)
}
void
mucwin_affiliation_list_error(const char *const roomjid, const char *const affiliation,
mucwin_affiliation_list_error(ProfMucWin *mucwin, const char *const affiliation,
const char *const error)
{
ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
if (window) {
win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error retrieving %s list: %s", affiliation, error);
}
assert(mucwin != NULL);
ProfWin *window = (ProfWin*)mucwin;
win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error retrieving %s list: %s", affiliation, error);
}
void