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 "<nick>!<ident>@<host>"
This commit is contained in:
Miniontoby 2022-03-23 19:25:16 +01:00 committed by GitHub
parent 7fbbfd6cdb
commit bd8a0bab9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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