aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2019-09-06 16:50:02 -0400
committerGravatar GitHub <[email protected]>2019-09-06 16:50:02 -0400
commit8a8a60b6042146f5e2ac1a0e46b9326c4e61ba8b (patch)
tree82d0f8647b9fbb38e4462e0e26471da1124d506e
parentFix bug in Candy Collection Cog (diff)
Update bot/seasons/evergreen/snakes/utils.py
Co-Authored-By: Mark <[email protected]>
-rw-r--r--bot/seasons/evergreen/snakes/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/seasons/evergreen/snakes/utils.py b/bot/seasons/evergreen/snakes/utils.py
index 9edc86ca..b1d5048a 100644
--- a/bot/seasons/evergreen/snakes/utils.py
+++ b/bot/seasons/evergreen/snakes/utils.py
@@ -436,7 +436,7 @@ class SnakeAndLaddersGame:
if reaction.emoji == JOIN_EMOJI:
await self.player_join(user)
elif reaction.emoji == CANCEL_EMOJI:
- if user == self.author or all((self._is_moderator(user), user not in self.players)):
+ if user == self.author or (self._is_moderator(user) and user not in self.players):
# Allow game author or non-playing moderation staff to cancel a waiting game
await self.cancel_game()
return