]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Powerbot: fix handling of bans.
authorRudolf Polzer <divVerent@gmail.com>
Fri, 4 Nov 2022 17:11:17 +0000 (18:11 +0100)
committerRudolf Polzer <divVerent@gmail.com>
Fri, 4 Nov 2022 17:11:17 +0000 (18:11 +0100)
misc/infrastructure/powerbot/bot.go

index 4c8b2f53779af59e6558375337b5d20913b2ed1d..3566eede8d6b0985e519ade70a2d37cf049c6ba7 100644 (file)
@@ -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.
                }