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 9228e5d4..62609f00 100644
--- a/news/newsbot.js
+++ b/news/newsbot.js
@@ -73,6 +73,7 @@ function create_feedbot (nick, uri, channels) {
}
client.once('registered', loop_feedparser)
+ client.once('registered', deaf_myself)
client.on('error', function (error) {
console.log('Error:', error)
@@ -139,6 +140,9 @@ function create_feedbot (nick, uri, channels) {
return setTimeout(loop_feedparser, feedbot_loop_delay)
})
}
+ function deaf_myself () {
+ client.send('mode', nick, '+D')
+ }
}
// return true if text "is talking to" my_nick