Merge pull request #679 from Cooldude2606/fix/whitelist-remove

Fix whitelist remove command with tests. Tests check that set-banned and set-whitelist will send rcon commands to running instances and that it is case insensitive.
This commit is contained in:
Cooldude2606 authored and GitHub committed 2024-11-01 01:29:10 +00:00
commit ace8356f68
2 files changed
+74 -1

No files matched your search

+1 -1
View File
@@ -966,7 +966,7 @@ rcon.print(game.table_to_json(players))`.replace(/\r?\n/g, " ");
}
let { name, whitelisted } = request;
let command = whitelisted ? `/whitelist add ${name}` : `/whiteliste remove ${name}`;
let command = whitelisted ? `/whitelist add ${name}` : `/whitelist remove ${name}`;
await this.sendRcon(command);
}