diff options
| author | 2019-03-21 21:08:04 +0000 | |
|---|---|---|
| committer | 2019-03-21 21:08:04 +0000 | |
| commit | 2f729eac46130c6e50726528eb5cfd432bf1c38f (patch) | |
| tree | b288018db3f2dd9791c685de8d86eab16a62458a | |
| parent | Put spaces between units in output from utils.to_pretty_time (diff) | |
| signature | ||
Show coins in "human" form (with commas) in flip wins/losses
| -rw-r--r-- | modules/coins.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/coins.py b/modules/coins.py index 1c6e877b..7e5b37bc 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -231,7 +231,8 @@ class Module(ModuleManager.BaseModule): event["stdout"].write( "%s flips %s and wins %s coin%s! (new total: %s)" % ( event["user"].nickname, side_name, coin_bet_str, - "" if coin_bet == 1 else "s", self._coin_str(new_total) + "" if coin_bet == 1 else "s", + self._coin_str_human(new_total) ) ) else: @@ -240,7 +241,7 @@ class Module(ModuleManager.BaseModule): "%s flips %s and loses %s coin%s! (new total: %s)" % ( event["user"].nickname, side_name, coin_bet_str, "" if coin_bet == 1 else "s", - self._coin_str(user_coins-coin_bet) + self._coin_str_human(user_coins-coin_bet) ) ) |
