From 12c442d870a685c499745970fe485eb22408c05f Mon Sep 17 00:00:00 2001 From: topkecleon Date: Tue, 23 Feb 2016 16:32:34 -0500 Subject: [PATCH] Final fix to wikipedia.lua. --- plugins/patterns.lua | 2 +- plugins/wikipedia.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/patterns.lua b/plugins/patterns.lua index 97d3341..b882d69 100644 --- a/plugins/patterns.lua +++ b/plugins/patterns.lua @@ -12,7 +12,7 @@ local action = function(msg) local output = msg.reply_to_message.text:gsub( msg.text:match('^/s/(.-)/(.-)/?$') ) - output = 'Did you mean:\n"' .. output:sub(1, 4000) .. '"?' + output = 'Did you mean:\n"' .. output:sub(1, 4000) .. '"' sendReply(msg.reply_to_message, output) end diff --git a/plugins/wikipedia.lua b/plugins/wikipedia.lua index 4971b10..74840e9 100755 --- a/plugins/wikipedia.lua +++ b/plugins/wikipedia.lua @@ -65,7 +65,7 @@ local action = function(msg) text = text:gsub('', '') local l = text:find('\n') if l then - text = text:sub(1, l-2) + text = text:sub(1, l-1) end title = title:gsub('%(.+%)', '')