diff --git a/chat.go b/chat.go index b367c92..0a83bcd 100644 --- a/chat.go +++ b/chat.go @@ -132,7 +132,7 @@ func parseRumbleChatArgs(argsS string) []string { arg := []rune{} for _, c := range argsS { if c == ',' && open == 0 { - args = append(args, string(arg)) + args = append(args, strings.TrimSpace(string(arg))) arg = []rune{} } else { if c == '[' { @@ -146,7 +146,7 @@ func parseRumbleChatArgs(argsS string) []string { } } if len(arg) > 0 { - args = append(args, string(arg)) + args = append(args, strings.TrimSpace(string(arg))) } return args