chat errors if not online
This commit is contained in:
@@ -122,7 +122,7 @@ local function handleTransaction(transaction)
|
|||||||
if chat and chat.tell then
|
if chat and chat.tell then
|
||||||
local msg = string.format('PURCHASE: %s bought %d %s for %s',
|
local msg = string.format('PURCHASE: %s bought %d %s for %s',
|
||||||
recipient, p2, t.itemId, t.price * p2)
|
recipient, p2, t.itemId, t.price * p2)
|
||||||
chat.tell(msg)
|
pcall(chat.tell, msg)
|
||||||
end
|
end
|
||||||
if extra > 0 then
|
if extra > 0 then
|
||||||
print('extra: ' .. extra)
|
print('extra: ' .. extra)
|
||||||
|
|||||||
Reference in New Issue
Block a user