gsub
This commit is contained in:
parent
b4f1f06365
commit
4211935a44
@ -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
|
||||
|
@ -21,6 +21,7 @@ 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, " ", " ")
|
||||
|
Reference in New Issue
Block a user