fix rcon return

This commit is contained in:
Skillet 2023-04-21 19:35:45 -04:00
parent 441ff99335
commit 5e291450b0

View File

@ -1177,7 +1177,7 @@ layer
// this.verbose(1, 'Parsing layer', l)
const gl = /((?<mod>[a-zA-Z0-9]+)_)?(?<level>[a-zA-Z0-9]+)_(?<gamemode>[a-zA-Z0-9]+)_(?<version>[a-zA-Z0-9]+)(_(?<team1>[a-zA-Z0-9]+)v(?<team2>[a-zA-Z0-9]+))?/.exec(l)?.groups
// this.verbose(1, 'Parsed layer', gl)
if (!gl || Object.keys(gl).length !== 3) return;
if (!gl) return;
if (!gl.level) this.verbose(1, 'Empty level', gl)