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