From a0bfc6b32f0dacb7df2dd17b17d33874f224d667 Mon Sep 17 00:00:00 2001 From: Vladimir Hodakov Date: Sun, 26 Nov 2017 16:36:35 +0400 Subject: [PATCH] Another dumb typo fix Starting in production day in a nutshell, yeah :D --- lib/squader/squader.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/squader/squader.go b/lib/squader/squader.go index aa13b39..5661b6c 100644 --- a/lib/squader/squader.go +++ b/lib/squader/squader.go @@ -347,7 +347,7 @@ func (s *Squader) AddUserToSquad(update *tgbotapi.Update, adderRaw *dbmapping.Pl return s.squadUserAdditionFailure(update) } - if c.Users.PlayerBetterThan(&playerRaw, "admin") { + if !c.Users.PlayerBetterThan(&playerRaw, "admin") { _, ok = c.Users.GetProfile(playerRaw.ID) if !ok { return s.squadUserAdditionFailure(update)