about summary refs log tree commit diff stats
path: root/src/event/server_events.c
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-11-01 22:46:24 +0000
committerJames Booth <boothj5@gmail.com>2015-11-01 22:46:24 +0000
commitc0fc7b51e3205d77e943294f437c725e0097c926 (patch)
tree0be375d5aae6519d129243c4d4c34d1ea7ee5db9 /src/event/server_events.c
parente547ae0bcc42a3fddab4f49fa6dfec4815320c10 (diff)
downloadprofani-tty-c0fc7b51e3205d77e943294f437c725e0097c926.tar.gz
mucwin_affiliation_change takes ProfMucWin
Diffstat (limited to 'src/event/server_events.c')
-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 bda81f25..c8a5b760 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -599,7 +599,10 @@ sv_ev_muc_self_online(const char *const room, const char *const nick, gboolean c
 
             // affiliation changed
             } else if (g_strcmp0(affiliation, old_affiliation) != 0) {
-                mucwin_affiliation_change(room, affiliation, actor, reason);
+                ProfMucWin *mucwin = wins_get_muc(room);
+                if (mucwin) {
+                    mucwin_affiliation_change(mucwin, affiliation, actor, reason);
+                }
             }
         }
     }