Corrected which values to check when checking if someone is battling
This commit is contained in:
parent
4de0b9eb5b
commit
8ba99ec277
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue