This commit is proof that I shouldn't be allowed to program anymore.
This commit is contained in:
parent
4474cc4b6d
commit
a83dbdcb7f
|
|
@ -54,12 +54,7 @@ module.exports = class commandPreprocessor{
|
||||||
this.command = validator.trim(validator.escape(this.rawData.msg));
|
this.command = validator.trim(validator.escape(this.rawData.msg));
|
||||||
|
|
||||||
//nuke the message if its empty or huge
|
//nuke the message if its empty or huge
|
||||||
if(!validator.isLength(this.command, {min: 1, max: 255})){
|
return (validator.isLength(this.command, {min: 1, max: 255}));
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
//return true to tell preprocess to continue on
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
splitCommand(){
|
splitCommand(){
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue