Bugfix für AFK-Patterns
This commit is contained in:
parent
29d3dffdda
commit
638c5e1ae9
@ -5,8 +5,8 @@ local afk = {}
|
|||||||
|
|
||||||
function afk:init(config)
|
function afk:init(config)
|
||||||
afk.triggers = {
|
afk.triggers = {
|
||||||
"^/([A|a][F|f][K|k])$",
|
"^/([A|a][F|f][K|k]) (.*)$",
|
||||||
"^/([A|a][F|f][K|k]) (.*)$"
|
"^/([A|a][F|f][K|k])$"
|
||||||
}
|
}
|
||||||
afk.doc = [[*
|
afk.doc = [[*
|
||||||
]]..config.cmd_pat..[[afk* _[Text]_: Setzt Status auf AFK mit optionalem Text]]
|
]]..config.cmd_pat..[[afk* _[Text]_: Setzt Status auf AFK mit optionalem Text]]
|
||||||
@ -100,7 +100,7 @@ function afk:pre_process(msg, self)
|
|||||||
return msg
|
return msg
|
||||||
end
|
end
|
||||||
|
|
||||||
function afk:action(msg)
|
function afk:action(msg, config, matches)
|
||||||
if msg.chat.type == "private" then
|
if msg.chat.type == "private" then
|
||||||
utilities.send_reply(self, msg, "Mir ist's egal, ob du AFK bist ._.")
|
utilities.send_reply(self, msg, "Mir ist's egal, ob du AFK bist ._.")
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user