Add space between colon and URL for uploaded media (#360)

This commit is contained in:
ValdikSS 2018-02-01 19:46:10 +03:00 committed by Wim
parent 9c9c4bf1f9
commit da908c438a
4 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@ func (b *Bgitter) Send(msg config.Message) (string, error) {
for _, f := range msg.Extra["file"] { for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo) fi := f.(config.FileInfo)
if fi.Comment != "" { if fi.Comment != "" {
msg.Text += fi.Comment + ":" msg.Text += fi.Comment + ": "
} }
if fi.URL != "" { if fi.URL != "" {
msg.Text = fi.URL msg.Text = fi.URL

View File

@ -181,7 +181,7 @@ func (b *Birc) Send(msg config.Message) (string, error) {
for _, f := range msg.Extra["file"] { for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo) fi := f.(config.FileInfo)
if fi.Comment != "" { if fi.Comment != "" {
msg.Text += fi.Comment + ":" msg.Text += fi.Comment + ": "
} }
if fi.URL != "" { if fi.URL != "" {
msg.Text = fi.URL msg.Text = fi.URL

View File

@ -66,7 +66,7 @@ func (b *Bsshchat) Send(msg config.Message) (string, error) {
for _, f := range msg.Extra["file"] { for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo) fi := f.(config.FileInfo)
if fi.Comment != "" { if fi.Comment != "" {
msg.Text += fi.Comment + ":" msg.Text += fi.Comment + ": "
} }
if fi.URL != "" { if fi.URL != "" {
msg.Text = fi.URL msg.Text = fi.URL

View File

@ -85,7 +85,7 @@ func (b *Bxmpp) Send(msg config.Message) (string, error) {
for _, f := range msg.Extra["file"] { for _, f := range msg.Extra["file"] {
fi := f.(config.FileInfo) fi := f.(config.FileInfo)
if fi.Comment != "" { if fi.Comment != "" {
msg.Text += fi.Comment + ":" msg.Text += fi.Comment + ": "
} }
if fi.URL != "" { if fi.URL != "" {
msg.Text += fi.URL msg.Text += fi.URL