about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/event')
-rw-r--r--src/event/server_events.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/event/server_events.c b/src/event/server_events.c
index 0b7858a3..8a308207 100644
--- a/src/event/server_events.c
+++ b/src/event/server_events.c
@@ -908,8 +908,12 @@ sv_ev_room_occupent_banned(const char* const room, const char* const nick, const
     }
 
     Jid* jidp = jid_create_from_bare_and_resource(room, nick);
+
+    muc_members_remove(room, jidp->fulljid);
     ProfPrivateWin* privwin = wins_get_private(jidp->fulljid);
+
     jid_destroy(jidp);
+
     if (privwin != NULL) {
         privwin_occupant_banned(privwin, actor, reason);
     }