summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.go14
1 files changed, 10 insertions, 4 deletions
diff --git a/app.go b/app.go
index f65ec4c..cc4137b 100644
--- a/app.go
+++ b/app.go
@@ -1492,14 +1492,20 @@ func (app *App) printTopic(netID, buffer string) (ok bool) {
}
topic, who, at := s.Topic(buffer)
topic = ui.IRCString(topic).String()
- if who == nil {
- body = fmt.Sprintf("Topic: %s", topic)
+ app.win.AddLine(netID, buffer, ui.Line{
+ At: time.Now(),
+ Head: "topic",
+ HeadColor: tcell.ColorGray,
+ Body: ui.Styled(topic, tcell.StyleDefault.Foreground(tcell.ColorWhite)),
+ })
+ if who != nil {
+ body = fmt.Sprintf("%s at %s", who, at.Local().Format("Mon 2 Jan 15:04:05"))
} else {
- body = fmt.Sprintf("Topic (by %s, %s): %s", who, at.Local().Format("Mon Jan 2 15:04:05"), topic)
+ body = fmt.Sprintf("%s", at.Local().Format("Mon 2 Jan 15:04:05"))
}
app.win.AddLine(netID, buffer, ui.Line{
At: time.Now(),
- Head: "--",
+ Head: "—",
HeadColor: tcell.ColorGray,
Body: ui.Styled(body, tcell.StyleDefault.Foreground(tcell.ColorGray)),
})