Navigation Menu

Skip to content

Commit

Permalink
added ignore in invite listener
Browse files Browse the repository at this point in the history
  • Loading branch information
audaxion committed Feb 8, 2014
1 parent 6547a19 commit ee2aff8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/irc.coffee
Expand Up @@ -271,6 +271,11 @@ class IrcBot extends Adapter
bot.addListener 'invite', (channel, from) ->
console.log('%s invited you to join %s', from, channel)

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

if not process.env.HUBOT_IRC_PRIVATE or process.env.HUBOT_IRC_IGNOREINVITE
bot.join channel

Expand Down

0 comments on commit ee2aff8

Please sign in to comment.