From 2f729eac46130c6e50726528eb5cfd432bf1c38f Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 21 Mar 2019 21:08:04 +0000 Subject: [PATCH] Show coins in "human" form (with commas) in flip wins/losses --- modules/coins.py | 5 +++-- 1 file 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) ) )