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
|
if is_offline(hash) then
|
||||||
local afk_text = get_afk_text(hash)
|
local afk_text = get_afk_text(hash)
|
||||||
if afk_text then
|
if afk_text then
|
||||||
return 'Du bist bereits AFK ('..afk_text..')!'
|
return 'Du bist bereits AFK! ('..afk_text..')'
|
||||||
else
|
else
|
||||||
return 'Du bist bereits AFK!'
|
return 'Du bist bereits AFK!'
|
||||||
end
|
end
|
||||||
@ -60,7 +60,7 @@ local function pre_process(msg)
|
|||||||
redis:hset(hash, 'afk', false)
|
redis:hset(hash, 'afk', false)
|
||||||
if afk_text then
|
if afk_text then
|
||||||
redis:hset(hash, 'afk_text', false)
|
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
|
else
|
||||||
send_msg(receiver, user_name..' ist wieder da!', ok_cb, false)
|
send_msg(receiver, user_name..' ist wieder da!', ok_cb, false)
|
||||||
end
|
end
|
||||||
|
@ -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, "'", "'")
|
||||||
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