modules/coins.py.send should be checking user_coins before the send amount is
taken away, not after
This commit is contained in:
parent
8eb5c11979
commit
a15a2e3444
1 changed files with 1 additions and 1 deletions
|
@ -211,7 +211,7 @@ class Module(object):
|
||||||
"redeem-amount", DEFAULT_REDEEM_AMOUNT))
|
"redeem-amount", DEFAULT_REDEEM_AMOUNT))
|
||||||
new_user_coins = user_coins-send_amount
|
new_user_coins = user_coins-send_amount
|
||||||
|
|
||||||
if new_user_coins == DECIMAL_ZERO:
|
if user_coins == DECIMAL_ZERO:
|
||||||
event["stderr"].write("You have no coins")
|
event["stderr"].write("You have no coins")
|
||||||
return
|
return
|
||||||
elif new_user_coins < redeem_amount:
|
elif new_user_coins < redeem_amount:
|
||||||
|
|
Loading…
Reference in a new issue