From a838ac1aa10d4d56bb26a2bbd125cfb2b52f7335 Mon Sep 17 00:00:00 2001 From: topkecleon Date: Sat, 20 Feb 2016 05:57:57 -0500 Subject: [PATCH] hashtag MakeWikipediaGreatAgain --- plugins/wikipedia.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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('%[.+]%','')