Show wallet balances in a human format (with ","s)

This commit is contained in:
jesopo 2018-11-02 13:09:09 +00:00
parent 44f3e241d2
commit 9b2040e280

View file

@ -238,7 +238,7 @@ class Module(ModuleManager.BaseModule):
(event["user"].nickname, wallet))
coins = self._get_user_coins(event["user"], wallet)
event["stdout"].write("%s: you have %s coins in your '%s' wallet" %
(event["user"].nickname, self._coin_str(coins), wallet))
(event["user"].nickname, self._coin_str_human(coins), wallet))
@utils.hook("received.command.addwallet", authenticated=True, min_args=1)
def add_wallet(self, event):