about summary refs log tree commit diff stats
path: root/src/ui/mucwin.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-02 00:52:50 +0000
committerJames Booth <boothj5@gmail.com>2015-11-02 00:52:50 +0000
commit1602011e01413eec01c755155f18bedba6722a23 (patch)
treea5cb0797e545714ffad83433d3286b0b5fe8fa5a /src/ui/mucwin.c
parent982bc8e066066f3027c33f628b1a0be233a4a1bc (diff)
downloadprofani-tty-1602011e01413eec01c755155f18bedba6722a23.tar.gz
mucwin_role_set_error takes ProfMucWin
Diffstat (limited to 'src/ui/mucwin.c')
-rw-r--r--src/ui/mucwin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ui/mucwin.c b/src/ui/mucwin.c
index 8217faf5..c508b676 100644
--- a/src/ui/mucwin.c
+++ b/src/ui/mucwin.c
@@ -725,13 +725,13 @@ mucwin_affiliation_set_error(ProfMucWin *mucwin, const char *const jid, const ch
 }
 
 void
-mucwin_role_set_error(const char *const roomjid, const char *const nick, const char *const role,
+mucwin_role_set_error(ProfMucWin *mucwin, const char *const nick, const char *const role,
     const char *const error)
 {
-    ProfWin *window = (ProfWin*)wins_get_muc(roomjid);
-    if (window) {
-        win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error setting %s role for %s: %s", role, nick, error);
-    }
+    assert(mucwin != NULL);
+
+    ProfWin *window = (ProfWin*)mucwin;
+    win_vprint(window, '!', 0, NULL, 0, THEME_ERROR, "", "Error setting %s role for %s: %s", role, nick, error);
 }
 
 void