fixed handling on league claim
This commit is contained in:
		
							parent
							
								
									bac252b0be
								
							
						
					
					
						commit
						6cdfa1bd5b
					
				| @ -878,10 +878,12 @@ 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!") | ||||||
|         await msg.channel.send("Can't find that league, boss.") |         else: | ||||||
|  |             await msg.channel.send("Can't find that league, boss.") | ||||||
| 
 | 
 | ||||||
| class LeagueAddOwnersCommand(Command): | class LeagueAddOwnersCommand(Command): | ||||||
|     name = "addleagueowner" |     name = "addleagueowner" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user