From bd1926d20045ea31a6cb2814082cd5fe2a194e73 Mon Sep 17 00:00:00 2001 From: krau <71133316+krau@users.noreply.github.com> Date: Sat, 22 Aug 2026 18:29:55 +0800 Subject: [PATCH] chore: go fix codebase --- client/bot/handlers/watch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/bot/handlers/watch.go b/client/bot/handlers/watch.go index 00d4d72..dd78b4f 100644 --- a/client/bot/handlers/watch.go +++ b/client/bot/handlers/watch.go @@ -64,7 +64,7 @@ func handleWatchCmd(ctx *ext.Context, update *ext.Update) error { filter := "" if len(args) > 2 { filterArg := strings.Join(args[2:], " ") - filterType := strings.Split(filterArg, ":")[0] + filterType, _, _ := strings.Cut(filterArg, ":") filterData := strings.Split(filterArg, ":")[1] if filterType == "" || filterData == "" { ctx.Reply(update, ext.ReplyTextString(i18n.T(i18nk.BotMsgWatchErrorFilterFormatInvalid)), nil)