Get user to do get_id() on in coins.py
This commit is contained in:
parent
1cc850350d
commit
fa18d5ca4c
1 changed files with 2 additions and 1 deletions
|
@ -156,7 +156,8 @@ class Module(object):
|
||||||
"" if coin_bet == 1 else "s"))
|
"" if coin_bet == 1 else "s"))
|
||||||
|
|
||||||
def send(self, event):
|
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")
|
event["stderr"].write("You can't send coins to yourself")
|
||||||
return
|
return
|
||||||
send_amount = event["args_split"][1]
|
send_amount = event["args_split"][1]
|
||||||
|
|
Loading…
Reference in a new issue