Rate limit requestSeenLogins

This commit is contained in:
calzoneman 2013-05-26 12:43:11 -04:00
parent fc2234c0c1
commit 07f64bdf56
1 changed files with 3 additions and 0 deletions

View File

@ -385,6 +385,9 @@ User.prototype.initCallbacks = function() {
this.socket.on("requestSeenlogins", function() {
if(this.channel != null) {
if(this.noflood("requestSeenLogins", 0.25)) {
return;
}
this.channel.sendRankStuff(this);
}
}.bind(this));