summaryrefslogtreecommitdiff
path: root/shop.lua
diff options
context:
space:
mode:
Diffstat (limited to 'shop.lua')
-rw-r--r--shop.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/shop.lua b/shop.lua
index d5e5226..1ded4f6 100644
--- a/shop.lua
+++ b/shop.lua
@@ -14,8 +14,8 @@ sendws { type="get_subscription_level" }
while true do
msgtxt = assert(ws.receive(),"ws error")
msg = textutils.unserializeJSON(msgtxt)
- print(c.type)
- if c.type ~= "keepalive" then print(msgtxt) end
+ print(msg.type)
+ if msg.type ~= "keepalive" then print(msgtxt) end
end