Limit netmsg length to 512

This commit is contained in:
7cc5c4f330d47060 2024-09-12 00:47:58 -04:00
parent 54fd31f890
commit 598723f7cc
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,7 @@ module.exports = {
color: c.colors.primary
},
{
text: c.args.join(' ')
text: c.args.join(' ').slice(0,512)
}
],
color: 'white'

View file

@ -1,7 +1,7 @@
module.exports = {
execute: (c) => {
if (c.args[0].startsWith('/') && c.verify < 1) return
c.bot.chat(c.args.join(' '))
c.bot.chat(c.args.join(' ').slice(0,512))
},
consoleIndex: true,
aliases: ['echo']