Fix wrong method of referencing server in timer callback

This commit is contained in:
jesopo 2018-08-09 15:16:15 +01:00
parent 67e030155d
commit 4502256263

View file

@ -132,7 +132,7 @@ class Module(object):
def interest(self, event):
for server in self.bot.servers.values():
all_coins = event["server"].get_all_user_settings(
all_coins = server.get_all_user_settings(
"coins", [])
interest_rate = event["server"].get_setting("interest-rate",
DEFAULT_INTEREST_RATE)