From fa18d5ca4c5074e79d7fdb08767b9e81b7afa39e Mon Sep 17 00:00:00 2001 From: jesopo Date: Wed, 5 Sep 2018 13:32:21 +0100 Subject: [PATCH] Get user to do get_id() on in coins.py --- modules/coins.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/coins.py b/modules/coins.py index efb60edd..c5c11d99 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -156,7 +156,8 @@ class Module(object): "" if coin_bet == 1 else "s")) def send(self, event): - if event["user"].get_id() == event["args_split"][0].get_id(): + if event["user"].get_id() == event["server"].get_user(event[ + "args_split"][0]).get_id(): event["stderr"].write("You can't send coins to yourself") return send_amount = event["args_split"][1]