Add extra space before colon in attachments (irc). Fixes #1089 (#1101)

pull/1103/head
Wim 4 years ago committed by GitHub
parent 4d93a774ce
commit f7ec9af9e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,12 +54,12 @@ func (b *Birc) handleFiles(msg *config.Message) bool {
for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo)
if fi.Comment != "" {
msg.Text += fi.Comment + ": "
msg.Text += fi.Comment + " : "
}
if fi.URL != "" {
msg.Text = fi.URL
if fi.Comment != "" {
msg.Text = fi.Comment + ": " + fi.URL
msg.Text = fi.Comment + " : " + fi.URL
}
}
b.Local <- config.Message{Text: msg.Text, Username: msg.Username, Channel: msg.Channel, Event: msg.Event}

Loading…
Cancel
Save