Skip to content

Commit

Permalink
Remove banned muc member from member list
Browse files Browse the repository at this point in the history
If I'm understing everything right the member should be removed here.
muc_members_update() seems to have been writen for the same purpose.

Fix #1594
  • Loading branch information
jubalh committed Feb 2, 2022
1 parent e0f75e0 commit 6d1c661
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/event/server_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6d1c661

Please sign in to comment.