diff --git a/client/cmd/main.go b/client/cmd/main.go index a203456..631a223 100644 --- a/client/cmd/main.go +++ b/client/cmd/main.go @@ -60,13 +60,7 @@ func (cs *ClientState) HandleInput(input string) error { var verb string rest := input if strings.HasPrefix(input, "/") { - // TODO this is def broken lol - input = input[1:] - parts := strings.SplitN(input, " ", 1) - verb = parts[0] - if len(parts) > 1 { - rest = parts[1] - } + verb, rest, _ = strings.Cut(input[1:], " ") } else { verb = "say" }