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