Bugfix
This commit is contained in:
parent
534ebf6615
commit
8c8d3430b0
2
core.lua
2
core.lua
|
@ -223,7 +223,7 @@ function lurkcoin.pay(source, target, target_server, amount, callback)
|
||||||
return callback(true, 'Transaction sent!')
|
return callback(true, 'Transaction sent!')
|
||||||
end
|
end
|
||||||
lurkcoin.bank.add(source, amount, 'Reverting failed transaction.')
|
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!'
|
res.message = 'This server cannot afford to do that!'
|
||||||
end
|
end
|
||||||
return callback(false, 'ERROR: ' .. tostring(res.message))
|
return callback(false, 'ERROR: ' .. tostring(res.message))
|
||||||
|
|
Loading…
Reference in New Issue