From aaf56e4b923e468409fc252af36233ccd7ca01eb Mon Sep 17 00:00:00 2001 From: 7cc5c4f330d47060 Date: Sun, 8 Sep 2024 22:09:43 -0400 Subject: [PATCH] Bugfix for "SERVERS --- commands/about.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/about.js b/commands/about.js index 05abe9d..9da6874 100644 --- a/commands/about.js +++ b/commands/about.js @@ -255,7 +255,8 @@ const displayServerList = function (c) { module.exports = { execute: function (c) { - let subcmd = c.args[0] + let subcmd; + if(c.args.length>1) subcmd = c.args[0].toLowerCase(); if (subcmd === 'servers') subcmd = 'serverlist' if (c.cmdName === 'serverinfo') subcmd = 'server' if (c.cmdName === 'serverlist' || c.cmdName === 'servers') subcmd = 'serverlist'