commit 727ebfa
delthas
·
2025-05-30 13:53:37 +0000 UTC
parent ca71c08
Fix trimming end marker on CTCP messages
1 files changed,
+2,
-2
M
app.go
M
app.go
+2,
-2
1@@ -2036,8 +2036,8 @@ func (app *App) formatMessage(s *irc.Session, ev irc.MessageEvent) (buffer strin
2 content = strings.TrimRightFunc(content, unicode.IsSpace)
3
4 isAction := false
5- if strings.HasPrefix(ev.Content, "\x01") {
6- parts := strings.SplitN(ev.Content[1:], " ", 2)
7+ if strings.HasPrefix(content, "\x01") {
8+ parts := strings.SplitN(content[1:], " ", 2)
9 if len(parts) < 2 {
10 return
11 }