From: Rudolf Polzer Date: Fri, 4 Nov 2022 17:11:17 +0000 (+0100) Subject: Powerbot: fix handling of bans. X-Git-Tag: xonotic-v0.8.6~24 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=017c17f63edb589be2c4ee4a11fe36e52d06d8bd;p=xonotic%2Fxonotic.git Powerbot: fix handling of bans. --- diff --git a/misc/infrastructure/powerbot/bot.go b/misc/infrastructure/powerbot/bot.go index 4c8b2f53..3566eede 100644 --- a/misc/infrastructure/powerbot/bot.go +++ b/misc/infrastructure/powerbot/bot.go @@ -205,7 +205,7 @@ func Run() (err error) { switch mem.Membership { case event.MembershipJoin: handleJoin(eventTime(evt), evt.RoomID, member, evt) - case event.MembershipLeave: + case event.MembershipLeave, event.MembershipBan: handleLeave(eventTime(evt), evt.RoomID, member, evt) default: // Ignore. }