Compare commits

...

2 Commits

Author SHA1 Message Date
ThePendulum 5ec5711288 1.12.3 2022-10-23 02:49:30 +02:00
ThePendulum c4c2fa8472 Fixed Letters trying to retrieve non-existent room data. 2022-10-23 02:49:28 +02:00
3 changed files with 4 additions and 4 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "schat2-clive",
"version": "1.12.2",
"version": "1.12.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "schat2-clive",
"version": "1.12.2",
"version": "1.12.3",
"license": "ISC",
"dependencies": {
"bhttp": "^1.2.8",

View File

@ -1,6 +1,6 @@
{
"name": "schat2-clive",
"version": "1.12.2",
"version": "1.12.3",
"description": "Game host for SChat 2-powered chat sites",
"main": "src/app.js",
"scripts": {

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;