From fc36e5bbeb31a5a12d4b9722146ab1ddc3b05ace Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 18 Oct 2018 15:26:28 +0100 Subject: [PATCH] Typo in modules/coins.py, 'user' -> 'event["user"]' --- modules/coins.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/coins.py b/modules/coins.py index c2896c5e..2fdd6062 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -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))