diff --git a/plugins/afk.lua b/plugins/afk.lua index 3957976..ae1e4c1 100644 --- a/plugins/afk.lua +++ b/plugins/afk.lua @@ -24,7 +24,7 @@ local function switch_afk(user_name, user_id, chat_id, text) if is_offline(hash) then local afk_text = get_afk_text(hash) if afk_text then - return 'Du bist bereits AFK ('..afk_text..')!' + return 'Du bist bereits AFK! ('..afk_text..')' else return 'Du bist bereits AFK!' end @@ -60,7 +60,7 @@ local function pre_process(msg) redis:hset(hash, 'afk', false) if afk_text then redis:hset(hash, 'afk_text', false) - send_msg(receiver, user_name..' ist wieder da (war: '..afk_text..')!', ok_cb, false) + send_msg(receiver, user_name..' ist wieder da! (war: '..afk_text..')', ok_cb, false) else send_msg(receiver, user_name..' ist wieder da!', ok_cb, false) end diff --git a/plugins/url_title.lua b/plugins/url_title.lua index c6e5675..1657141 100644 --- a/plugins/url_title.lua +++ b/plugins/url_title.lua @@ -20,7 +20,8 @@ function getTitle(page) s = string.gsub(s, "ψ", "ψ") s = string.gsub(s, "»", "»") s = string.gsub(s, "ß", "ß") - s = string.gsub(s, "™", "™") + s = string.gsub(s, "™", "™") + s = string.gsub(s, "'", "'") s = string.gsub(s, "'", "'") s = string.gsub(s, "|", "|") s = string.gsub(s, " ", " ")