From 1462d06b0ee3bf14ae42ed21b47ffce091146185 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Sat, 9 Jun 2018 15:36:33 +0200 Subject: [PATCH] =?UTF-8?q?S=C3=B8rg=20for=20at=20botten=20ikke=20introduc?= =?UTF-8?q?ere=20hvis=20man=20skriver=20'hvem=20er=20du'=20p=C3=A5=20en=20?= =?UTF-8?q?offentlig=20chat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 3224261..58d8a69 100644 --- a/main.lua +++ b/main.lua @@ -520,7 +520,7 @@ local function handle_message(bot, user, channel, message, is_slow_channel) end -- Bot introduction - if message:lower():match('%f[%a]hvem%f[%A]') and (message:lower():match('%f[%a]'..escape_pattern(CONFIG.IRC_NICK)..'%f[%A]') or message:lower():match '%f[%a]du%f[%A]') then + if message:lower():match('%f[%a]hvem%f[%A]') and (message:lower():match('%f[%a]'..escape_pattern(CONFIG.IRC_NICK)..'%f[%A]') or not is_slow_channel and message:lower():match '%f[%a]du%f[%A]') then human_delay() local msg = BOT_INTRODUCTION:format(CONFIG.IRC_NICK) bot:sendChat(channel, msg)