diff options
author | James Booth <boothj5@gmail.com> | 2015-11-02 00:44:33 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-11-02 00:44:33 +0000 |
commit | 1aa3c0ea4fcb8dceaf7de04961a00b243fcc0e83 (patch) | |
tree | 416b222ec9fbc155817758d4c937a250435e9a3d /src/xmpp | |
parent | 2792c5903187eae6476934db710c033cd1f033b5 (diff) | |
download | profani-tty-1aa3c0ea4fcb8dceaf7de04961a00b243fcc0e83.tar.gz |
mucwin_role_list_error takes ProfMucWin
Diffstat (limited to 'src/xmpp')
-rw-r--r-- | src/xmpp/iq.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xmpp/iq.c b/src/xmpp/iq.c index 025690b2..e62e49bf 100644 --- a/src/xmpp/iq.c +++ b/src/xmpp/iq.c @@ -1397,7 +1397,10 @@ _room_role_list_result_handler(xmpp_conn_t *const conn, xmpp_stanza_t *const sta if (g_strcmp0(type, STANZA_TYPE_ERROR) == 0) { char *error_message = stanza_get_error_message(stanza); log_debug("Error retrieving %s list for room %s: %s", role, from, error_message); - mucwin_role_list_error(from, role, error_message); + ProfMucWin *mucwin = wins_get_muc(from); + if (mucwin) { + mucwin_role_list_error(mucwin, role, error_message); + } free(error_message); free(role); return 0; |