Get user to do get_id() on in coins.py

This commit is contained in:
jesopo 2018-09-05 13:32:21 +01:00
parent 1cc850350d
commit fa18d5ca4c

View file

@ -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]