From 598723f7cc706c383788a4643b6a3832ffac080a Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Thu, 12 Sep 2024 00:47:58 -0400 Subject: [PATCH] Limit netmsg length to 512 --- commands/netmsg.js | 2 +- commands/say.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/netmsg.js b/commands/netmsg.js index 889979a..d94f32b 100644 --- a/commands/netmsg.js +++ b/commands/netmsg.js @@ -41,7 +41,7 @@ module.exports = { color: c.colors.primary }, { - text: c.args.join(' ') + text: c.args.join(' ').slice(0,512) } ], color: 'white' diff --git a/commands/say.js b/commands/say.js index e6bc74f..693591e 100644 --- a/commands/say.js +++ b/commands/say.js @@ -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']