Skip to content

Commit

Permalink
Merge branch 'release/v1.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalab committed Feb 15, 2024
2 parents ae9c1d2 + e239f2d commit 8390c2d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
### v1.1.2 / 2024-02-15

- 不正なパラメータでサーバーが異常終了するバグを修正
- READMEにブログへのリンクを追加

### v1.1.1 / 2024-02-14

- 終局後にプレーヤーがゲームに再接続することがあるバグを修正
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ $ npm i -g @kobalab/majiang-server
<dd>標準出力にデバッグログを出力する</dd>
</dl>

**関連記事:** [麻雀サーバーの使い方](https://blog.kobalab.net/entry/2024/02/15/081605)

## ライセンス
[MIT](https://github.com/kobalab/majiang-server/blob/master/LICENSE)

Expand Down
2 changes: 2 additions & 0 deletions lib/room.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kobalab/majiang-server",
"version": "1.1.1",
"version": "1.1.2",
"description": "麻雀サーバー",
"publishConfig": {
"access": "public"
Expand Down

0 comments on commit 8390c2d

Please sign in to comment.