1
0
Fork 0
mirror of synced 2024-06-02 18:54:33 +12:00

Corrected which values to check when checking if someone is battling

This commit is contained in:
Phxntxm 2016-07-18 09:51:47 -05:00
parent 4de0b9eb5b
commit 8ba99ec277

View file

@ -15,10 +15,13 @@ def userBattling(ctx):
battling = config.getContent('battling')
if battling is None:
return False
if ctx.message.author.id in battling:
return True
if str(ctx.command) == 'battle':
if ctx.message.author.id in battling:
return True
return ctx.message.mentions[0].id in battling.values()
else:
return ctx.message.author.id in battling.values()
return False