Fixed Letters trying to retrieve non-existent room data.
This commit is contained in:
@@ -151,7 +151,7 @@ function onCommand(args, context) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function onMessage(message, 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
|
if (message.type !== 'message' || context.user?.id === config.user?.id) { // stop listening to yourself
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user