From 9666676766bf21364f4fc4d0d1d336e72f2a91b4 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 6 Oct 2026 12:57:23 -0400 Subject: refactor: split casino.go, dedup helpers, remove audit docs --- internal/game/core_login_char.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'internal/game/core_login_char.go') diff --git a/internal/game/core_login_char.go b/internal/game/core_login_char.go index 479e397..12a8cfb 100644 --- a/internal/game/core_login_char.go +++ b/internal/game/core_login_char.go @@ -177,13 +177,14 @@ func (g *Game) handleRenameChar(sess *net.Session, input string) { found := false for _, c := range sess.Account.Characters { - if c == sess.PendingChar { + if equalsFold(c, sess.PendingChar) { found = true break } } if !found { sess.WriteLine(fmt.Sprintf("No character named %s on this account.", sess.PendingChar)) + sess.PendingChar = "" g.showMenu(sess) return } @@ -300,7 +301,7 @@ func (g *Game) handleDeleteChar(sess *net.Session, input string) { } found := false for _, c := range sess.Account.Characters { - if c == sess.PendingChar { + if equalsFold(c, sess.PendingChar) { found = true break } -- cgit v1.2.3