From 57b9bb8a0a1500783ab6c4c3784caf82edd252a9 Mon Sep 17 00:00:00 2001 From: Robb Wright Date: Fri, 7 Feb 2014 16:37:09 -0800 Subject: [PATCH] Fix ignore users --- src/irc.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/irc.coffee b/src/irc.coffee index 7467020..e659a50 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -202,7 +202,8 @@ class IrcBot extends Adapter # this is a private message, let the 'pm' listener handle it return - if from in ignoreUsers + if from in options.ignoreUsers + console.log('Ignoring user: %s', from) # we'll ignore this message if it's from someone we want to ignore return @@ -221,7 +222,8 @@ class IrcBot extends Adapter bot.addListener 'action', (from, to, message) -> console.log " * From #{from} to #{to}: #{message}" - if from in ignoreUsers + if from in options.ignoreUsers + console.log('Ignoring user: %s', from) # we'll ignore this message if it's from someone we want to ignore return @@ -242,7 +244,8 @@ class IrcBot extends Adapter if process.env.HUBOT_IRC_PRIVATE return - if nick in ignoreUsers + if nick in options.ignoreUsers + console.log('Ignoring user: %s', nick) # we'll ignore this message if it's from someone we want to ignore return