From af24bfed7ce4624fde353098e2a7f51ee4e442c1 Mon Sep 17 00:00:00 2001 From: Cameron Turner Date: Mon, 2 Sep 2013 22:58:44 +0100 Subject: [PATCH] Ignore /invites when the HUBOT_IRC_IGNOREINVITE environment variable is set --- src/irc.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/irc.coffee b/src/irc.coffee index 77243d9..b75c4d7 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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