forked from minetest-mods/irc
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>`
This commit is contained in:
parent
7fbbfd6cdb
commit
758e9b6361
@ -171,7 +171,7 @@ end
|
|||||||
|
|
||||||
|
|
||||||
function irc.hooks.notice(user, target, message)
|
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)
|
irc.sendLocal("-"..user.nick.."@IRC- "..message)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user