From 7eb65ac1da3583a13daf67213eb9a37d7c79df19 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 16 Oct 2018 13:41:02 +0100 Subject: [PATCH] modules/coins.py._take should have a `server` param --- modules/coins.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/coins.py b/modules/coins.py index 4ef38cff..8eae0817 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -73,9 +73,9 @@ class Module(ModuleManager.BaseModule): user_coins = self._get_user_coins(user) self._take_from_pool(server, amount) self._set_user_coins(user, user_coins+amount) - def _take(self, user, amount): + def _take(self, server, user, amount): user_coins = self._get_user_coins(user) - self._give_to_pool(amount) + self._give_to_pool(server, amount) self._set_user_coins(user, user_coins-amount) def _move(self, user1, user2, amount): user1_coins = self._get_user_coins(user1)