Skip to content

Commit

Permalink
Fix ignore users
Browse files Browse the repository at this point in the history
  • Loading branch information
audaxion committed Feb 8, 2014
1 parent ad94ede commit 57b9bb8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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

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

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

Expand Down

0 comments on commit 57b9bb8

Please sign in to comment.