From 638c5e1ae92fe735560f1e78b3b6ab5c2d6c0ad9 Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 9 Aug 2016 13:53:12 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix=20f=C3=BCr=20AFK-Patterns?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/afk.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/otouto/plugins/afk.lua b/otouto/plugins/afk.lua index aa6b3d9..6e29f04 100644 --- a/otouto/plugins/afk.lua +++ b/otouto/plugins/afk.lua @@ -5,8 +5,8 @@ local afk = {} function afk:init(config) 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 = [[* ]]..config.cmd_pat..[[afk* _[Text]_: Setzt Status auf AFK mit optionalem Text]] @@ -100,7 +100,7 @@ function afk:pre_process(msg, self) return msg end -function afk:action(msg) +function afk:action(msg, config, matches) if msg.chat.type == "private" then utilities.send_reply(self, msg, "Mir ist's egal, ob du AFK bist ._.") return