summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)
})