From 54a179c772570391696c39beb4c7766d9bada6b5 Mon Sep 17 00:00:00 2001 From: anekos Date: Wed, 22 Aug 2012 00:37:31 +0900 Subject: Reset restartCount at "tw!restartstreams" --- twittperator.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'twittperator.js') diff --git a/twittperator.js b/twittperator.js index 42da2f2..88d80b7 100644 --- a/twittperator.js +++ b/twittperator.js @@ -1628,6 +1628,7 @@ let INFO = return { start: start, stop: stop, + resetRestartCount: function () (restartCount = 0), addListener: function(func) listeners.push(func), removeListener: function(func) (listeners = listeners.filter(function(l) (l != func))), clearPluginData: clearPluginData @@ -2681,6 +2682,9 @@ let INFO = let TrackingStream = Stream({ name: 'tracking stream', url: "https://stream.twitter.com/1/statuses/filter.json" }); let startStreams = function () { + ChirpUserStream.resetRestartCount(); + TrackingStream.resetRestartCount(); + if (setting.useChirp){ if(setting.allReplies) ChirpUserStream.start({"replies":"all"}); -- cgit v1.2.3