From 0b03b5b0e5d0d790c96f445da257ae8036db7115 Mon Sep 17 00:00:00 2001 From: Akamaru Date: Tue, 1 Dec 2015 20:51:42 +0100 Subject: [PATCH] akasblog.lua: content fix --- plugins/akasblog.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/plugins/akasblog.lua b/plugins/akasblog.lua index 1f36f4f..669c3bf 100644 --- a/plugins/akasblog.lua +++ b/plugins/akasblog.lua @@ -57,18 +57,16 @@ local function get_post(post) local from = data.author.name local date = makeOurDate(data.date) - local teaser = string.gsub(data.excerpt, '\n', '') + local content = string.match(data.excerpt, '

(.*)

') local url = data.url - local text = title..' ('..from..' am '..date..')\n\n'..teaser..'...\n'..url + local text = title..' ('..from..' am '..date..')\n\n'..content..'...\n'..url return text end local function run(msg, matches) local text = get_post(post) - local text = string.gsub(text, "

", "") - local text = string.gsub(text, "

", "") local receiver = get_receiver(msg) return text end