mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Remove banned muc member from member list
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 https://github.com/profanity-im/profanity/issues/1594
This commit is contained in:
parent
e0f75e0b52
commit
6d1c661e21
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user