From 68f9ad30d8b4fb8d4fac4c0e4701fcb9e508929b Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Mon, 30 Jan 2017 15:09:40 -0500 Subject: [PATCH] examples/lamp/lamp-remote: don't call nil on malfored message --- lamp-remote.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lamp-remote.lua b/lamp-remote.lua index e780a12..3a59a61 100644 --- a/lamp-remote.lua +++ b/lamp-remote.lua @@ -54,6 +54,6 @@ return function(msg) -- "new"). local c,as for c,as in msg:gmatch("(%w*)%s*([^;]*);%s*") do - if c then vt[c](as) end + if c and vt[c] then vt[c](as) end end end -- 2.50.1