mirror of https://github.com/calzoneman/sync.git
Rate limit requestSeenLogins
This commit is contained in:
parent
fc2234c0c1
commit
07f64bdf56
3
user.js
3
user.js
|
@ -385,6 +385,9 @@ User.prototype.initCallbacks = function() {
|
||||||
|
|
||||||
this.socket.on("requestSeenlogins", function() {
|
this.socket.on("requestSeenlogins", function() {
|
||||||
if(this.channel != null) {
|
if(this.channel != null) {
|
||||||
|
if(this.noflood("requestSeenLogins", 0.25)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
this.channel.sendRankStuff(this);
|
this.channel.sendRankStuff(this);
|
||||||
}
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
Loading…
Reference in New Issue