fixed handling on league claim

This commit is contained in:
Sakimori 2021-01-15 16:08:39 -05:00
parent bac252b0be
commit 6cdfa1bd5b

View File

@ -878,9 +878,11 @@ class LeagueClaimCommand(Command):
if league.owner is None: if league.owner is None:
league.owner = [msg.author.id] league.owner = [msg.author.id]
leagues.save_league(league) leagues.save_league(league)
await msg.channel.send(f"The {league} commissioner is doing a great job. That's you, by the way.") await msg.channel.send(f"The {league.name} commissioner is doing a great job. That's you, by the way.")
return
else: else:
await msg.channel.send("That league has already been claimed!") await msg.channel.send("That league has already been claimed!")
else:
await msg.channel.send("Can't find that league, boss.") await msg.channel.send("Can't find that league, boss.")
class LeagueAddOwnersCommand(Command): class LeagueAddOwnersCommand(Command):