This commit is contained in:
luk3yx 2020-12-05 16:48:43 +13:00
parent 534ebf6615
commit 8c8d3430b0
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ function lurkcoin.pay(source, target, target_server, amount, callback)
return callback(true, 'Transaction sent!')
end
lurkcoin.bank.add(source, amount, 'Reverting failed transaction.')
if res.code == 'ERR_CANNOTAFFORD' then
if res.error == 'ERR_CANNOTAFFORD' then
res.message = 'This server cannot afford to do that!'
end
return callback(false, 'ERROR: ' .. tostring(res.message))