1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Ensure the message responded to is the one we want

This commit is contained in:
phxntxm 2017-03-15 21:29:51 -05:00
parent 2c5c69cfce
commit efcd7ad251

View file

@ -179,7 +179,7 @@ class Pages:
self.paginating = False
def react_check(self, reaction, user):
if user is None or user.id != self.author.id:
if user is None or user.id != self.author.id or reaction.message != self.message:
return False
for (emoji, func) in self.reaction_emojis: