display current moderator, fix assignment of spectator

This commit is contained in:
AlecM33
2023-04-01 23:49:21 -04:00
parent daf2fe781f
commit a26b405ffa
8 changed files with 75 additions and 35 deletions

View File

@@ -393,6 +393,7 @@ async function addSpectator (game, name, logger, namespace, eventManager, instan
name,
globals.USER_TYPES.SPECTATOR
);
spectator.assigned = true;
logger.trace('new spectator: ' + spectator.name);
game.people.push(spectator);
await refreshGame(game);