diff options
author | lassulus <lassulus@googlemail.com> | 2014-03-17 02:10:39 +0100 |
---|---|---|
committer | lassulus <lassulus@googlemail.com> | 2014-03-17 02:10:39 +0100 |
commit | 3f2320f85e6bd19bf3b4f6bbd4f07b5ae1e731c8 (patch) | |
tree | 2853ee49b39bc7c9db5551a5904a9f6773461994 /news/newsbot.js | |
parent | e8292ba803596a2605d0ff8a94f51eb8707c115a (diff) |
newsbot.js: save really connected channels
Diffstat (limited to 'news/newsbot.js')
-rw-r--r-- | news/newsbot.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/news/newsbot.js b/news/newsbot.js index 55564f0f..28ab52ea 100644 --- a/news/newsbot.js +++ b/news/newsbot.js @@ -76,7 +76,6 @@ function create_feedbot (nick, uri, channels) { client: client, nick: nick, uri: uri, - channels: channels, } // say text in every joined channel @@ -247,7 +246,7 @@ methods.save = function (params, callback) { return [ slave.nick, slave.uri, - slave.channels.join(' '), + Object.keys(client.chans).join(' '), ].join('|') }).join('\n') + '\n' return FS.writeFile(feeds_file, feeds, function (error) { |