Skip to content

Commit

Permalink
ban: Reverted b0087d1 and hopefully implemented it properly this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
MinoMino committed Jan 26, 2016
1 parent a35c6aa commit 591973e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ban.py
Original file line number Diff line number Diff line change
Expand Up @@ -394,8 +394,8 @@ def leave_status(self, steam_id):
else:
action = None

return action, ratio
return action, completed / total

def warn_player(self, player, ratio):
player.tell("^7You have only completed ^6{}^7 percent of your games.".format(round((completed / total) * 100, 1)))
player.tell("^7You have only completed ^6{}^7 percent of your games.".format(round(ratio * 100, 1)))
player.tell("^7If you keep leaving you ^6will^7 be banned.")

0 comments on commit 591973e

Please sign in to comment.