summaryrefslogtreecommitdiffstats
path: root/news
diff options
context:
space:
mode:
authorlassulus <lassulus@googlemail.com>2014-03-17 02:36:38 +0100
committerlassulus <lassulus@googlemail.com>2014-03-17 02:36:38 +0100
commitadb33710bf3b9c3c1634d13125f39a7697294b1a (patch)
treee73573aa532a5c337ad4d2e50d33d338a57bf142 /news
parent3f2320f85e6bd19bf3b4f6bbd4f07b5ae1e731c8 (diff)
newsbot.js: join after invite
Diffstat (limited to 'news')
-rw-r--r--news/newsbot.js4
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)
})