From d3f6d4e6434527569d13f211a0eb074c5a11992e Mon Sep 17 00:00:00 2001 From: RblSb Date: Tue, 8 Nov 2022 21:40:08 +0300 Subject: Ignore empty slash command --- res/client.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'res') diff --git a/res/client.js b/res/client.js index 9669afe..90e026c 100644 --- a/res/client.js +++ b/res/client.js @@ -1969,6 +1969,9 @@ client_Main.prototype = { } var args = StringTools.trim(command).split(" "); command = HxOverrides.substr(args.shift(),1,null); + if(command.length == 0) { + return false; + } switch(command) { case "ban": this.mergeRedundantArgs(args,0,2); -- cgit v1.2.3