about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-01 22:42:31 +0000
committerJames Booth <boothj5@gmail.com>2015-11-01 22:42:31 +0000
commite547ae0bcc42a3fddab4f49fa6dfec4815320c10 (patch)
tree8c1e2bc1fa78926ed34eb61488743609718760a6 /src/event
parent2be3b7d9a298eae3fef2829b5c51895a17b10a0e (diff)
downloadprofani-tty-e547ae0bcc42a3fddab4f49fa6dfec4815320c10.tar.gz
mucwin_role_change takes ProfMucWin
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 7d39267b..bda81f25 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -592,7 +592,10 @@ sv_ev_muc_self_online(const char *const room, const char *const nick, gboolean c
 
             // role changed
             } else if (g_strcmp0(role, old_role) != 0) {
-                mucwin_role_change(room, role, actor, reason);
+                ProfMucWin *mucwin = wins_get_muc(room);
+                if (mucwin) {
+                    mucwin_role_change(mucwin, role, actor, reason);
+                }
 
             // affiliation changed
             } else if (g_strcmp0(affiliation, old_affiliation) != 0) {