Skip to content

Commit 758e9b6

Browse files
authored
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 `<nick>!<ident>@<host>`
1 parent 7fbbfd6 commit 758e9b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hooks.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ end
171171

172172

173173
function irc.hooks.notice(user, target, message)
174-
if user.nick and target == irc.config.channel then
174+
if user and user.nick and target == irc.config.channel then
175175
irc.sendLocal("-"..user.nick.."@IRC- "..message)
176176
end
177177
end

0 commit comments

Comments
 (0)