From 62de514c2eca5dd314772569582535b84e85319e Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Thu, 15 Feb 2024 16:54:28 +0800 Subject: [PATCH 1/3] =?UTF-8?q?README=E3=81=AB=E3=83=96=E3=83=AD=E3=82=B0?= =?UTF-8?q?=E3=81=B8=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index bb29f5e..2d235ea 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,8 @@ $ npm i -g @kobalab/majiang-server
標準出力にデバッグログを出力する
+**関連記事:** [麻雀サーバーの使い方](https://blog.kobalab.net/entry/2024/02/15/081605) + ## ライセンス [MIT](https://github.com/kobalab/majiang-server/blob/master/LICENSE) From 639e55a914d0adc645950c309d5ea835644770d7 Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Thu, 15 Feb 2024 17:38:06 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E4=B8=8D=E6=AD=A3=E3=81=AA=E3=83=91?= =?UTF-8?q?=E3=83=A9=E3=83=A1=E3=83=BC=E3=82=BF=E3=81=A7=E3=82=B5=E3=83=BC?= =?UTF-8?q?=E3=83=90=E3=83=BC=E3=81=8C=E7=95=B0=E5=B8=B8=E7=B5=82=E4=BA=86?= =?UTF-8?q?=E3=81=99=E3=82=8B=E3=83=90=E3=82=B0=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/room.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/room.js b/lib/room.js index 4af692c..ec49dfc 100644 --- a/lib/room.js +++ b/lib/room.js @@ -120,8 +120,10 @@ function get_room_no() { function room(sock, room_no, uid) { let user = get_user(sock); + if (! user) return; if (uid) { + if (! ROOM[room_no]) return; if (uid == user.uid && ROOM[room_no].uids[0] == user.uid) { for (let uid of ROOM[room_no].uids) { if (USER[uid].room_no == room_no) { From e239f2d3b2b6551436a67c120a33d90fd5510928 Mon Sep 17 00:00:00 2001 From: Satoshi Kobayashi Date: Thu, 15 Feb 2024 18:19:53 +0800 Subject: [PATCH 3/3] v1.1.2 / 2024-02-15 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 不正なパラメータでサーバーが異常終了するバグを修正 - READMEにブログへのリンクを追加 --- ChangeLog.md | 5 +++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog.md b/ChangeLog.md index 44f8524..97e9c99 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -1,3 +1,8 @@ +### v1.1.2 / 2024-02-15 + + - 不正なパラメータでサーバーが異常終了するバグを修正 + - READMEにブログへのリンクを追加 + ### v1.1.1 / 2024-02-14 - 終局後にプレーヤーがゲームに再接続することがあるバグを修正 diff --git a/package-lock.json b/package-lock.json index 6990908..f74cacb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@kobalab/majiang-server", - "version": "1.1.1", + "version": "1.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@kobalab/majiang-server", - "version": "1.1.1", + "version": "1.1.2", "license": "MIT", "dependencies": { "@kobalab/majiang-core": "^1.2.0", diff --git a/package.json b/package.json index 32a8c65..a766d7c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kobalab/majiang-server", - "version": "1.1.1", + "version": "1.1.2", "description": "麻雀サーバー", "publishConfig": { "access": "public"