From a83dbdcb7f650ce856a084e4b735ee3060e27f22 Mon Sep 17 00:00:00 2001 From: rainbow napkin Date: Mon, 16 Dec 2024 04:39:43 -0500 Subject: [PATCH] This commit is proof that I shouldn't be allowed to program anymore. --- src/app/channel/commandPreprocessor.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/app/channel/commandPreprocessor.js b/src/app/channel/commandPreprocessor.js index 40c1579..b46a38b 100644 --- a/src/app/channel/commandPreprocessor.js +++ b/src/app/channel/commandPreprocessor.js @@ -54,12 +54,7 @@ module.exports = class commandPreprocessor{ this.command = validator.trim(validator.escape(this.rawData.msg)); //nuke the message if its empty or huge - if(!validator.isLength(this.command, {min: 1, max: 255})){ - return false; - } - - //return true to tell preprocess to continue on - return true; + return (validator.isLength(this.command, {min: 1, max: 255})); } splitCommand(){