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", "name": "schat2-clive",
"version": "1.12.2", "version": "1.12.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "schat2-clive", "name": "schat2-clive",
"version": "1.12.2", "version": "1.12.3",
"license": "ISC", "license": "ISC",
"dependencies": { "dependencies": {
"bhttp": "^1.2.8", "bhttp": "^1.2.8",

View File

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

View File

@ -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;