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('%(.+%)', '')