Skip to content

Commit 36a46c4

Browse files
committed
Merge pull request nandub#94 from VShell/feature/ignore-invites
Add environment variable to ignore invites
2 parents f3b7d13 + af24bfe commit 36a46c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/irc.coffee

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ class IrcBot extends Adapter
247247
bot.addListener 'invite', (channel, from) ->
248248
console.log('%s invite you to join %s', from, channel)
249249

250-
if not process.env.HUBOT_IRC_PRIVATE
250+
if not process.env.HUBOT_IRC_PRIVATE or process.env.HUBOT_IRC_IGNOREINVITE
251251
bot.join channel
252252

253253
@bot = bot

0 commit comments

Comments
 (0)