From c3ee734c19292789c8337cc92f71f4c5e1fcce30 Mon Sep 17 00:00:00 2001 From: "kepler155c@gmail.com" Date: Thu, 25 Apr 2019 12:39:52 -0400 Subject: [PATCH] chat errors if not online --- swshop/swshop.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swshop/swshop.lua b/swshop/swshop.lua index 2536376..3eaddbc 100644 --- a/swshop/swshop.lua +++ b/swshop/swshop.lua @@ -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)