Limit netmsg length to 512
This commit is contained in:
parent
54fd31f890
commit
598723f7cc
2 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ module.exports = {
|
||||||
color: c.colors.primary
|
color: c.colors.primary
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
text: c.args.join(' ')
|
text: c.args.join(' ').slice(0,512)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
color: 'white'
|
color: 'white'
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
module.exports = {
|
module.exports = {
|
||||||
execute: (c) => {
|
execute: (c) => {
|
||||||
if (c.args[0].startsWith('/') && c.verify < 1) return
|
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,
|
consoleIndex: true,
|
||||||
aliases: ['echo']
|
aliases: ['echo']
|
||||||
|
|
Loading…
Reference in a new issue