forked from Hri7566/mpp-server-dev2
Update Client.js
This commit is contained in:
parent
5d9fb96529
commit
fe5488c6d8
|
@ -16,10 +16,13 @@ class Client extends EventEmitter {
|
||||||
this.ip = (req.connection.remoteAddress).replace("::ffff:", "");
|
this.ip = (req.connection.remoteAddress).replace("::ffff:", "");
|
||||||
this.destroied = false;
|
this.destroied = false;
|
||||||
this.bindEventListeners();
|
this.bindEventListeners();
|
||||||
this.cursQuota = new RateLimit(16);
|
this.quotas = {
|
||||||
this.chatQuota = new RateLimitChain(4, 4000);
|
chat: new RateLimitChain(4, 4000),
|
||||||
this.usersetQuota = new RateLimitChain(30, 30 * 60000);
|
name: new RateLimitChain(30, 30 * 60000),
|
||||||
this.crowned_chatQuota = new RateLimitChain(10, 2000);
|
cursor: new RateLimit(16),
|
||||||
|
kickban: new RateLimitChain(2, 1000),
|
||||||
|
crowned_chat: new RateLimitChain(10, 2000)
|
||||||
|
}
|
||||||
require('./Message.js')(this);
|
require('./Message.js')(this);
|
||||||
}
|
}
|
||||||
isConnected() {
|
isConnected() {
|
||||||
|
|
Loading…
Reference in New Issue