Permalink
Browse files

Slight anti-flood protection.

  • Loading branch information...
1 parent fd1cf39 commit 199d83d33cc4eb345d660ecbc340df802fe1d6d0 James Socol committed Jul 12, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 jig.js
View
6 jig.js
@@ -91,8 +91,10 @@ client.on('message', function(from, to, msg) {
console.log(err);
return;
}
- pulls.forEach(function(pull) {
- printPullReq(to, pull);
+ pulls.forEach(function(pull, i) {
+ setTimeout(function() {
+ printPullReq(to, pull);
+ }, i * 100);
});
});
} else if (PULLREQRE.test(msg)) {

0 comments on commit 199d83d

Please sign in to comment.