From c4c2fa8472e64ada75da215cc8ac27b157bd0918 Mon Sep 17 00:00:00 2001 From: Niels Simenon Date: Sun, 23 Oct 2022 02:49:28 +0200 Subject: [PATCH] Fixed Letters trying to retrieve non-existent room data. --- src/games/letters.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/games/letters.js b/src/games/letters.js index d884712..684aedd 100644 --- a/src/games/letters.js +++ b/src/games/letters.js @@ -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;