From 72d6b5ab2f493e787992e7d06c0478a2eb4b5ec2 Mon Sep 17 00:00:00 2001 From: Jacob Gable Date: Thu, 22 May 2014 08:28:07 -0500 Subject: [PATCH] Fix notice without from user --- src/irc.coffee | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/irc.coffee b/src/irc.coffee index 47b94c1..b6ffec5 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -220,6 +220,8 @@ class IrcBot extends Adapter self.createUser channel, nick bot.addListener 'notice', (from, to, message) -> + return unless from + if from in options.ignoreUsers logger.info('Ignoring user: %s', from) # we'll ignore this message if it's from someone we want to ignore