Skip to content

Commit

Permalink
Ignore /invites when the HUBOT_IRC_IGNOREINVITE environment variable …
Browse files Browse the repository at this point in the history
…is set
  • Loading branch information
VShell committed Sep 2, 2013
1 parent f3b7d13 commit af24bfe
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 af24bfe

Please sign in to comment.