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/cmd_say.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'internal/game/cmd_say.go') diff --git a/internal/game/cmd_say.go b/internal/game/cmd_say.go index b7d3982..61ece74 100644 --- a/internal/game/cmd_say.go +++ b/internal/game/cmd_say.go @@ -11,12 +11,7 @@ func (g *Game) executeSay(sess *net.Session, args []string, rawInput string) { if len(args) == 0 { sess.WriteLine("Say what?") } else { - msgStart := strings.Index(strings.ToLower(rawInput), "say ") + 4 - if msgStart >= 4 && msgStart < len(rawInput) { - g.doSay(sess, rawInput[msgStart:]) - } else { - g.doSay(sess, strings.Join(args, " ")) - } + g.doSay(sess, strings.Join(rawArgsFrom(rawInput, "say"), " ")) } } -- cgit v1.2.3