aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-01-13 09:52:37 -0800
committerGravatar MarkKoz <[email protected]>2020-02-12 10:07:53 -0800
commit13b8c7f4143d5dbc25e07f52fe64bc7a1079ab68 (patch)
tree80296c2d57fcbd79551d07d8395c2b1bffde58bc
parentSync tests: test _reaction_check for invalid reactions (diff)
Sync: fix precedence of conditional expression in _reaction_check
-rw-r--r--bot/cogs/sync/syncers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/sync/syncers.py b/bot/cogs/sync/syncers.py
index e7465d31d..6c95b58ad 100644
--- a/bot/cogs/sync/syncers.py
+++ b/bot/cogs/sync/syncers.py
@@ -100,7 +100,7 @@ class Syncer(abc.ABC):
return (
reaction.message.id == message.id
and not user.bot
- and has_role if author.bot else user == author
+ and (has_role if author.bot else user == author)
and str(reaction.emoji) in self._REACTION_EMOJIS
)