commit d0cd9d5

Hubert Hirtz  ·  2021-09-13 13:44:53 +0000 UTC
parent b2666f8
Remove IRC formatting when printing the topic
1 files changed,  +2, -1
M app.go
M app.go
+2, -1
 1@@ -641,7 +641,8 @@ func (app *App) handleIRCEvent(ev interface{}) {
 2 		body.Grow(len(ev.Topic) + 18)
 3 		body.SetStyle(tcell.StyleDefault.Foreground(tcell.ColorGray))
 4 		body.WriteString("Topic changed to: ")
 5-		body.WriteString(ev.Topic)
 6+		topic := ui.IRCString(ev.Topic)
 7+		body.WriteString(topic.String())
 8 		app.win.AddLine(ev.Channel, ui.NotifyUnread, ui.Line{
 9 			At:        msg.TimeOrNow(),
10 			Head:      "--",