From da908c438a03bb0d575f05cbd42bfd0b3bd304c0 Mon Sep 17 00:00:00 2001 From: ValdikSS Date: Thu, 1 Feb 2018 19:46:10 +0300 Subject: [PATCH] Add space between colon and URL for uploaded media (#360) --- bridge/gitter/gitter.go | 2 +- bridge/irc/irc.go | 2 +- bridge/sshchat/sshchat.go | 2 +- bridge/xmpp/xmpp.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bridge/gitter/gitter.go b/bridge/gitter/gitter.go index 53f1b0d8..6b1c2122 100644 --- a/bridge/gitter/gitter.go +++ b/bridge/gitter/gitter.go @@ -125,7 +125,7 @@ func (b *Bgitter) Send(msg config.Message) (string, error) { 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 diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 8e85fa29..f35efd26 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -181,7 +181,7 @@ func (b *Birc) Send(msg config.Message) (string, error) { 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 diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go index 7b008fe0..1682b42e 100644 --- a/bridge/sshchat/sshchat.go +++ b/bridge/sshchat/sshchat.go @@ -66,7 +66,7 @@ func (b *Bsshchat) Send(msg config.Message) (string, error) { 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 diff --git a/bridge/xmpp/xmpp.go b/bridge/xmpp/xmpp.go index 9c2eb2cc..6cc9413d 100644 --- a/bridge/xmpp/xmpp.go +++ b/bridge/xmpp/xmpp.go @@ -85,7 +85,7 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) { 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