diff options
| author | 2018-10-12 13:53:15 +0100 | |
|---|---|---|
| committer | 2018-10-12 13:53:15 +0100 | |
| commit | a15a2e3444aaa34552ee8712ce0c4ef1f365506f (patch) | |
| tree | 159da437f6b5963d573628c3c7a3e010b5a1d3e9 | |
| parent | ' -> " in modules/eval_python.py (diff) | |
| signature | ||
modules/coins.py.send should be checking user_coins before the send amount is
taken away, not after
| -rw-r--r-- | modules/coins.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/coins.py b/modules/coins.py index a481118d..16f6ddf9 100644 --- a/modules/coins.py +++ b/modules/coins.py @@ -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: |
