Add chat message length limit
This commit is contained in:
parent
a126ba0fee
commit
138982d54a
|
@ -123,6 +123,8 @@ export class Channel extends EventEmitter {
|
|||
if (userFlags.cant_chat) return;
|
||||
}
|
||||
|
||||
if (msg.message.length > 512) return;
|
||||
|
||||
// Sanitize
|
||||
msg.message = msg.message
|
||||
.replace(/\p{C}+/gu, "")
|
||||
|
|
Loading…
Reference in New Issue