From 3e571c5c1f676568af31c5e46b909b3c51a36505 Mon Sep 17 00:00:00 2001 From: sgoudham Date: Fri, 17 Jul 2020 00:24:48 +0100 Subject: [PATCH] Adding return to make sure the function stops Making sure that the check is correctly called --- cogs/modmail/modmail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/modmail/modmail.py b/cogs/modmail/modmail.py index 9ba317bf..abe35152 100644 --- a/cogs/modmail/modmail.py +++ b/cogs/modmail/modmail.py @@ -151,13 +151,14 @@ class Modmail(commands.Cog): @commands.Cog.listener() async def on_raw_reaction_add(self, payload): self.anon = None + m = payload.member # A check that makes sure that the reaction is done by the bot def check(m): return m == self.bot.user # If the member is not a user, do nothing - if not check: + if check(m): return else: # Find a role corresponding to the Emoji name.