Skip to content

Commit

Permalink
Add extra space before colon in attachments (irc). Fixes #1089
Browse files Browse the repository at this point in the history
  • Loading branch information
42wim committed Apr 19, 2020
1 parent 4d93a77 commit 27f0e83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bridge/irc/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 27f0e83

Please sign in to comment.