Fixed Letters trying to retrieve non-existent room data.

This commit is contained in:
ThePendulum 2022-10-23 02:49:28 +02:00
parent 83a18e9377
commit c4c2fa8472
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ function onCommand(args, context) {
}
function onMessage(message, context) {
const game = games.get(context.room.id);
const game = games.get(context.room?.id);
if (message.type !== 'message' || context.user?.id === config.user?.id) { // stop listening to yourself
return;