diff options
author | Michael Vetter <jubalh@iodoru.org> | 2022-02-02 21:57:44 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2022-02-02 21:57:44 +0100 |
commit | 6d1c661e21e4e1e436959542493b2841a2bac7cb (patch) | |
tree | 260416699096f48b11bffca78a9394de6e741a6b /src/event | |
parent | e0f75e0b528523696de451da80145677ac4295fe (diff) | |
download | profani-tty-6d1c661e21e4e1e436959542493b2841a2bac7cb.tar.gz |
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
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/server_events.c | 4 |
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); } |