diff options
author | Hubert Hirtz <hubert@hirtz.pm> | 2021-05-21 09:53:27 +0200 |
---|---|---|
committer | Hubert Hirtz <hubert@hirtz.pm> | 2021-05-21 09:54:45 +0200 |
commit | a731c1d835a87141cbe13981f63c18c52f8b6d3b (patch) | |
tree | 82f6a573abb2d65d7e8e485632a327a491a3752f /app.go | |
parent | Handle consecutive spaces on arg split (diff) |
Remove parenthesis around notices
Reason: interaction with services don't render well with parenthesis
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -697,13 +697,13 @@ func (app *App) formatMessage(ev irc.MessageEvent) (buffer string, line ui.Line, body := strings.TrimSuffix(ev.Content, "\x01") if isNotice && isAction { c := ircColorSequence(ui.IdentColor(ev.User)) - body = fmt.Sprintf("(%s%s\x0F:%s)", c, ev.User, body[7:]) + body = fmt.Sprintf("%s%s\x0F:%s", c, ev.User, body[7:]) } else if isAction { c := ircColorSequence(ui.IdentColor(ev.User)) body = fmt.Sprintf("%s%s\x0F%s", c, ev.User, body[7:]) } else if isNotice { c := ircColorSequence(ui.IdentColor(ev.User)) - body = fmt.Sprintf("(%s%s\x0F: %s)", c, ev.User, body) + body = fmt.Sprintf("%s%s\x0F: %s", c, ev.User, body) } line = ui.Line{ |