From ee2aff833cc58abe8c9691bbacebc488f4540756 Mon Sep 17 00:00:00 2001 From: Robb Wright Date: Fri, 7 Feb 2014 21:03:53 -0800 Subject: [PATCH] added ignore in invite listener --- src/irc.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/irc.coffee b/src/irc.coffee index 10904b7..1fcd55b 100644 --- a/src/irc.coffee +++ b/src/irc.coffee @@ -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