Permalink
Browse files

Merge pull request #138 from sishen/master

User can invite robot to join channels in irc
  • Loading branch information...
2 parents 463dea0 + e9cbaad commit cc2508e2f98ecd70bf15abe0ae35799f073beb64 Tom Bell committed Nov 2, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/hubot/irc.coffee
View
@@ -94,6 +94,10 @@ class IrcBot extends Robot
bot.addListener 'kick', (channel, who, _by, reason) ->
console.log('%s was kicked from %s by %s: %s', who, channel, _by, reason)
+ bot.addListener 'invite', (channel, from) ->
+ console.log('%s invite you to join %s', from, channel)
+ bot.join channel
+
@bot = bot
module.exports = IrcBot

0 comments on commit cc2508e

Please sign in to comment.