diff options
| author | lassulus <lassulus@googlemail.com> | 2014-03-17 02:36:38 +0100 | 
|---|---|---|
| committer | lassulus <lassulus@googlemail.com> | 2014-03-17 02:36:38 +0100 | 
| commit | adb33710bf3b9c3c1634d13125f39a7697294b1a (patch) | |
| tree | e73573aa532a5c337ad4d2e50d33d338a57bf142 | |
| parent | 3f2320f85e6bd19bf3b4f6bbd4f07b5ae1e731c8 (diff) | |
newsbot.js: join after invite
| -rw-r--r-- | news/newsbot.js | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/news/newsbot.js b/news/newsbot.js index 28ab52ea..35e99c59 100644 --- a/news/newsbot.js +++ b/news/newsbot.js @@ -88,6 +88,10 @@ function create_feedbot (nick, uri, channels) {    client.once('registered', loop_feedparser)    client.once('registered', deaf_myself) +  client.on('invite', function (channel, from, message) { +    client.join(channel, null) +  }) +    client.on('error', function (error) {      console.log('Error:', error)    }) | 
