Skip to content

Commit

Permalink
Handle invalid Steam IDs
Browse files Browse the repository at this point in the history
  • Loading branch information
NeKzor committed Apr 12, 2024
1 parent 17c32a7 commit 16620d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -484,8 +484,8 @@ const extractSteamData = (playerInfo?: StringTables.StringTableEntry): [string |
}

const guid = playerInfo.data?.guid;
if (guid === undefined) {
logger.error(`Found undefined player info GUID`);
if (guid === undefined || guid === 'STEAM_1:0:1' || guid === 'STEAM_1:1:1') {
logger.error(`Found invalid player info guid "${guid}"`);
return [null, null];
}

Expand Down

0 comments on commit 16620d2

Please sign in to comment.