fixed bug in wikipedia.lua

This commit is contained in:
topkecleon 2016-02-20 05:53:28 -05:00
parent 42d0e4cb0e
commit b17c77eead

View File

@ -62,11 +62,11 @@ local action = function(msg)
return
end
text = text:gsub('</?.->', '')
local l = text:find('<h2>')
if l then
text = text:sub(1, l-1)
end
text = text:gsub('</?.->', '')
title = title:gsub('%(.+%)', '')
--local output = '[' .. title .. '](' .. url .. ')\n' .. text:gsub('%[.+]%','')