Typo in modules/coins.py, 'user' -> 'event["user"]'

This commit is contained in:
jesopo 2018-10-18 15:26:28 +01:00
parent f5ac44f1c6
commit fc36e5bbeb

View file

@ -183,7 +183,7 @@ class Module(ModuleManager.BaseModule):
if not self._user_has_wallet(event["user"], wallet):
raise utils.EventError("%s: you don't have a '%s' wallet" %
(event["user"].nickname, wallet))
coins = self._get_user_coins(user, 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))