added function unescape

This commit is contained in:
2015-06-25 22:10:29 +02:00
parent 69737edfd5
commit f3571e2091
2 changed files with 12 additions and 1 deletions

View File

@ -34,7 +34,6 @@ function run(msg, matches)
local header = "Tweet von " .. response.user.name .. " (@" .. response.user.screen_name .. ")\n"
local text = response.text
text = string.gsub(text, "&", "&")
-- replace short URLs
if response.entities.url then
@ -58,6 +57,7 @@ function run(msg, matches)
-- send the parts
local receiver = get_receiver(msg)
local text = unescape(text)
send_msg(receiver, header .. "\n" .. text, ok_cb, false)
for k, v in pairs(images) do
local file = download_to_file(v)