From bd8a0bab9c9fa85e29a5c2fe1d2156a8e422276d Mon Sep 17 00:00:00 2001 From: Miniontoby <47940064+Miniontoby@users.noreply.github.com> Date: Wed, 23 Mar 2022 19:25:16 +0100 Subject: [PATCH] Fixed the notice hook Fixed the error where it cannot find an user at the notice hook. It happened when you get the `NOTICE * :*** Looking up your hostname and checking ident` Because "*" is not in the "!@" --- hooks.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hooks.lua b/hooks.lua index 19a85ae..b6ca4a8 100644 --- a/hooks.lua +++ b/hooks.lua @@ -171,7 +171,7 @@ end function irc.hooks.notice(user, target, message) - if user.nick and target == irc.config.channel then + if user and user.nick and target == irc.config.channel then irc.sendLocal("-"..user.nick.."@IRC- "..message) end end