modules/coins.py.send should be checking user_coins before the send amount is

taken away, not after
This commit is contained in:
jesopo 2018-10-12 13:53:15 +01:00
parent 8eb5c11979
commit a15a2e3444

View file

@ -211,7 +211,7 @@ class Module(object):
"redeem-amount", DEFAULT_REDEEM_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")
return
elif new_user_coins < redeem_amount: