aboutsummaryrefslogtreecommitdiff
path: root/internal/game/core_login_account.go
diff options
context:
space:
mode:
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)