From 758e9b636106b39467aef780308de7b6e340a08d Mon Sep 17 00:00:00 2001 From: Miniontoby <47940064+Miniontoby@users.noreply.github.com> Date: Wed, 23 Mar 2022 22:13:51 +0100 Subject: [PATCH] Fix error caused by ident check notice (#71) 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