aboutsummaryrefslogtreecommitdiffstats
path: root/twittperator.js
diff options
context:
space:
mode:
authoranekos2012-08-22 00:37:31 +0900
committeranekos2012-08-22 00:37:31 +0900
commit54a179c772570391696c39beb4c7766d9bada6b5 (patch)
treee1074fc32ebbf5a543e92f95e7b85addb405f04d /twittperator.js
parent9b0249a0f687795caec587342e686300c6c7a39d (diff)
downloadvimperator-plugins-54a179c772570391696c39beb4c7766d9bada6b5.tar.bz2
Reset restartCount at "tw!restartstreams"
Diffstat (limited to 'twittperator.js')
-rw-r--r--twittperator.js4
1 files changed, 4 insertions, 0 deletions
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"});