diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/mucwin.c | 10 | ||||
-rw-r--r-- | src/ui/ui.h | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c index a7668479..92ab02e7 100644 --- a/src/ui/mucwin.c +++ b/src/ui/mucwin.c @@ -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 diff --git a/src/ui/ui.h b/src/ui/ui.h index 38c66a05..05cc6a84 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -197,8 +197,7 @@ void mucwin_occupant_presence(ProfMucWin *mucwin, const char *const nick, const void mucwin_update_occupants(const char *const roomjid); void mucwin_show_occupants(const char *const roomjid); void mucwin_hide_occupants(const char *const roomjid); -void mucwin_affiliation_list_error(const char *const roomjid, const char *const affiliation, - const char *const error); +void mucwin_affiliation_list_error(ProfMucWin *mucwin, const char *const affiliation, const char *const error); void mucwin_handle_affiliation_list(const char *const roomjid, const char *const affiliation, GSList *jids); void mucwin_affiliation_set_error(const char *const roomjid, const char *const jid, const char *const affiliation, const char *const error); |