@hadoku/game-server 0.1.168 → 0.1.169

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -852,7 +852,8 @@ export class RoomLobby {
852
852
  return { ok: false, reason: 'not-member' };
853
853
  if (!override && room.leader !== memberId)
854
854
  return { ok: false, reason: 'not-leader' };
855
- if (targetId === memberId)
855
+ // Already theirs: nothing to move. An operator naming themselves takes a lead that was someone else's.
856
+ if (targetId === room.leader)
856
857
  return { ok: true, room: this.view(room) };
857
858
  if (!passRoomLeader(room, targetId))
858
859
  return { ok: false, reason: 'target-not-member' };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-server",
3
- "version": "0.1.168",
4
- "gitHead": "5efa439df716915a7e81a585900f9869bf7a9561",
3
+ "version": "0.1.169",
4
+ "gitHead": "ee9d7f0d7377a77360fab634f97af5deeeb0b642",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The server parts any hosted game shares, above the kernel: the app config and edge auth, the room core (identity, seats, sessions, membership, the room list, the generic room routes), match hosting (the host contract, local and remote JVMs, placement, the start queue, recordings, the in-process and relay runtimes), streams, erase, telemetry and usage. Knows no game; Magic plugs in from apps/server. MIT; imports only node built-ins, express, socket.io, @wolffm/* and the platform packages.",
@@ -17,9 +17,9 @@
17
17
  "play/remote/"
18
18
  ],
19
19
  "dependencies": {
20
- "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.168",
21
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.168",
22
- "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.201",
20
+ "@wolffm/host-wire": "npm:@hadoku/host-wire@0.1.169",
21
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.169",
22
+ "@wolffm/service-kernel": "npm:@hadoku/service-kernel@0.1.202",
23
23
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.2",
24
24
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.144",
25
25
  "@wolffm/rooms-server": "npm:@hadoku/rooms-server@^0.45.144",