Fixed Letters trying to retrieve non-existent room data.
This commit is contained in:
parent
83a18e9377
commit
c4c2fa8472
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue