hearthstone.lua bugfix

This commit is contained in:
topkecleon 2016-02-21 22:09:02 -05:00
parent 02a7d411fa
commit 69de75bf72

View File

@ -104,7 +104,7 @@ local action = function(msg)
local output = '' local output = ''
for k,v in pairs(database.hearthstone) do 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' output = output .. format_card(v) .. '\n\n'
end end
end end