From: Rudolf Polzer Date: Wed, 25 Jan 2023 02:50:39 +0000 (+0100) Subject: Support invite-only rooms. X-Git-Tag: xonotic-v0.8.6~20 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=7a467142fb3a93bf08dcfb2e872f5e3d5e954b08;p=xonotic%2Fxonotic.git Support invite-only rooms. --- diff --git a/misc/infrastructure/powerbot/bot.go b/misc/infrastructure/powerbot/bot.go index 3566eede..e62906e8 100644 --- a/misc/infrastructure/powerbot/bot.go +++ b/misc/infrastructure/powerbot/bot.go @@ -223,7 +223,7 @@ func Run() (err error) { if since != "" && !fullySynced { log.Print("Fully synced.") for room, users := range roomUsers { - if len(users) == 0 { + if _, found := users[config.UserID]; !found { log.Printf("Not actually joined %v yet...", room) _, err := client.JoinRoom(string(room), "", nil) if err != nil {