From 69de75bf72586cc670a1352972e74d46d01e2c17 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Sun, 21 Feb 2016 22:09:02 -0500 Subject: [PATCH] hearthstone.lua bugfix --- plugins/hearthstone.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/hearthstone.lua b/plugins/hearthstone.lua index ec5e088..0db0765 100755 --- a/plugins/hearthstone.lua +++ b/plugins/hearthstone.lua @@ -104,7 +104,7 @@ local action = function(msg) local output = '' for k,v in pairs(database.hearthstone) do - if string.lower(v.name):match(input) then + if type(v) == 'table' and string.lower(v.name):match(input) then output = output .. format_card(v) .. '\n\n' end end