From: Rudolf Polzer Date: Mon, 9 Oct 2023 20:05:18 +0000 (+0200) Subject: Fix "typo" in powerbot. X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=46247191140f1150be2c45dfd74478c63d84e5f4;p=xonotic%2Fxonotic.git Fix "typo" in powerbot. --- diff --git a/misc/infrastructure/powerbot/powerlevels.go b/misc/infrastructure/powerbot/powerlevels.go index e7838886..ef40fd8c 100644 --- a/misc/infrastructure/powerbot/powerlevels.go +++ b/misc/infrastructure/powerbot/powerlevels.go @@ -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 {