chat errors if not online

This commit is contained in:
kepler155c@gmail.com
2019-04-25 12:39:52 -04:00
parent ddf0bd4727
commit c3ee734c19

View File

@@ -122,7 +122,7 @@ local function handleTransaction(transaction)
if chat and chat.tell then
local msg = string.format('PURCHASE: %s bought %d %s for %s',
recipient, p2, t.itemId, t.price * p2)
chat.tell(msg)
pcall(chat.tell, msg)
end
if extra > 0 then
print('extra: ' .. extra)