Skip to content

Commit

Permalink
Merge pull request nandub#94 from VShell/feature/ignore-invites
Browse files Browse the repository at this point in the history
Add environment variable to ignore invites
  • Loading branch information
jgable committed Sep 3, 2013
2 parents f3b7d13 + af24bfe commit 36a46c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/irc.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class IrcBot extends Adapter
bot.addListener 'invite', (channel, from) ->
console.log('%s invite you to join %s', from, channel)

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

@bot = bot
Expand Down

0 comments on commit 36a46c4

Please sign in to comment.