Bugfix for "SERVERS

This commit is contained in:
7cc5c4f330d47060 2024-09-08 22:09:43 -04:00
parent 26534a28d3
commit aaf56e4b92
Signed by: 7cc5c4f330d47060
SSH key fingerprint: SHA256:e+4tcZut1nBpe10PqjaO+Rvie0Q7W4qIvFzcUw+7riA

View file

@ -255,7 +255,8 @@ const displayServerList = function (c) {
module.exports = { module.exports = {
execute: function (c) { 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 (subcmd === 'servers') subcmd = 'serverlist'
if (c.cmdName === 'serverinfo') subcmd = 'server' if (c.cmdName === 'serverinfo') subcmd = 'server'
if (c.cmdName === 'serverlist' || c.cmdName === 'servers') subcmd = 'serverlist' if (c.cmdName === 'serverlist' || c.cmdName === 'servers') subcmd = 'serverlist'