aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_login_account.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-09-16 02:56:56 -0400
committerhistoria <[not public]>2026-09-16 02:56:56 -0400
commitf2d44f10f52d3fe68fdb19b518a330f7af9e1ed2 (patch)
tree9db54e8d4fd2f9bd30c651700f7cf246eef1b017 /internal/game/core_login_account.go
parentad60843fbf577eda80105e3916822d663aaefcb3 (diff)
downloadthehouseoficarus-f2d44f10f52d3fe68fdb19b518a330f7af9e1ed2.tar.gz
fix: disconnect race, rename ownership, reserved pickup, economy recovery retry/refund semantics
Diffstat (limited to 'internal/game/core_login_account.go')
-rw-r--r--internal/game/core_login_account.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/game/core_login_account.go b/internal/game/core_login_account.go
index 60cca2c..c5f1064 100644
--- a/internal/game/core_login_account.go
+++ b/internal/game/core_login_account.go
@@ -368,8 +368,9 @@ func (g *Game) handleRenameAccount(sess *net.Session, input string) {
// Republish account state to EVERY session of this account: other
// authenticated sessions must not retain stale account objects or
- // pending menu selections bound to the old name.
- g.publishAccountUpdate(newName)
+ // pending menu selections bound to the old name. Stale sessions still
+ // carry the old cached name, so match both.
+ g.publishAccountUpdate(oldName, newName)
sess.WriteLine(fmt.Sprintf("Account renamed to %s.", newName))
g.showMenu(sess)