commit a731c1d
Hubert Hirtz
·
2021-05-21 07:53:27 +0000 UTC
parent bcc3095
Remove parenthesis around notices Reason: interaction with services don't render well with parenthesis
2 files changed,
+4,
-4
M
app.go
+2,
-2
1@@ -697,13 +697,13 @@ func (app *App) formatMessage(ev irc.MessageEvent) (buffer string, line ui.Line,
2 body := strings.TrimSuffix(ev.Content, "\x01")
3 if isNotice && isAction {
4 c := ircColorSequence(ui.IdentColor(ev.User))
5- body = fmt.Sprintf("(%s%s\x0F:%s)", c, ev.User, body[7:])
6+ body = fmt.Sprintf("%s%s\x0F:%s", c, ev.User, body[7:])
7 } else if isAction {
8 c := ircColorSequence(ui.IdentColor(ev.User))
9 body = fmt.Sprintf("%s%s\x0F%s", c, ev.User, body[7:])
10 } else if isNotice {
11 c := ircColorSequence(ui.IdentColor(ev.User))
12- body = fmt.Sprintf("(%s%s\x0F: %s)", c, ev.User, body)
13+ body = fmt.Sprintf("%s%s\x0F: %s", c, ev.User, body)
14 }
15
16 line = ui.Line{
+2,
-2
1@@ -58,8 +58,8 @@ of messages are in the timeline:
2 nickname,
3 - Status messages, such as joins, parts, topics and name lists, are shown with
4 two dashes (*--*),
5-- Notices are shown with an asterisk (*\**) followed by the message in
6- parenthesis.
7+- Notices are shown with an asterisk (*\**) followed by the user nickname and a
8+ colon
9
10 # KEYBOARD SHORTCUTS
11