diff --git a/plugins/wikipedia.lua b/plugins/wikipedia.lua index 6d0fe87..4971b10 100755 --- a/plugins/wikipedia.lua +++ b/plugins/wikipedia.lua @@ -62,11 +62,11 @@ local action = function(msg) return end - local l = text:find('

') - if l then - text = text:sub(1, l-1) - end text = text:gsub('', '') + local l = text:find('\n') + if l then + text = text:sub(1, l-2) + end title = title:gsub('%(.+%)', '') --local output = '[' .. title .. '](' .. url .. ')\n' .. text:gsub('%[.+]%','')