]> git.rm.cloudns.org Git - xonotic/xonotic.git/commitdiff
Fix "typo" in powerbot.
authorRudolf Polzer <divVerent@gmail.com>
Mon, 9 Oct 2023 20:05:18 +0000 (22:05 +0200)
committerRudolf Polzer <divVerent@gmail.com>
Mon, 9 Oct 2023 20:05:18 +0000 (22:05 +0200)
misc/infrastructure/powerbot/powerlevels.go

index e7838886ec1ae7370ac53cd97da0edc3b6bf9ab3..ef40fd8cac9a693940cf50be0de75c456163dd3e 100644 (file)
@@ -169,7 +169,8 @@ func syncPowerLevels(client *mautrix.Client, room id.RoomID, roomGroup []Room, s
                        break
                }
                if len(j) <= maxPowerLevelBytes {
-                       continue
+                       // No need to trim.
+                       break
                }
                log.Printf("room %v not including power level %d to reduce message size", clearPowerLevel)
                for user, level := range newRoomLevels.Users {