Final fix to wikipedia.lua.

This commit is contained in:
topkecleon 2016-02-23 16:32:34 -05:00
parent 4111fac0cb
commit 12c442d870
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ local action = function(msg)
local output = msg.reply_to_message.text:gsub( local output = msg.reply_to_message.text:gsub(
msg.text:match('^/s/(.-)/(.-)/?$') 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) sendReply(msg.reply_to_message, output)
end end

View File

@ -65,7 +65,7 @@ local action = function(msg)
text = text:gsub('</?.->', '') text = text:gsub('</?.->', '')
local l = text:find('\n') local l = text:find('\n')
if l then if l then
text = text:sub(1, l-2) text = text:sub(1, l-1)
end end
title = title:gsub('%(.+%)', '') title = title:gsub('%(.+%)', '')