diff options
author | Wim <wim@42.be> | 2018-05-06 16:57:59 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-05-06 16:57:59 +0200 |
commit | 72ce7f06e9bfc2a665f034f4099ed6eb79637f5c (patch) | |
tree | 8aa4c5c75f3a815880ae9f9e4ea761c3620d8865 /bridge/sshchat/sshchat.go | |
parent | 346a7284f75373bd5a852dcdccda6d508bed6c5a (diff) | |
download | matterbridge-msglm-72ce7f06e9bfc2a665f034f4099ed6eb79637f5c.tar.gz matterbridge-msglm-72ce7f06e9bfc2a665f034f4099ed6eb79637f5c.tar.bz2 matterbridge-msglm-72ce7f06e9bfc2a665f034f4099ed6eb79637f5c.zip |
Handle file comment better
Diffstat (limited to 'bridge/sshchat/sshchat.go')
-rw-r--r-- | bridge/sshchat/sshchat.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/sshchat/sshchat.go b/bridge/sshchat/sshchat.go index 3204d734..343fc66a 100644 --- a/bridge/sshchat/sshchat.go +++ b/bridge/sshchat/sshchat.go @@ -68,6 +68,9 @@ func (b *Bsshchat) Send(msg config.Message) (string, error) { } if fi.URL != "" { msg.Text = fi.URL + if fi.Comment != "" { + msg.Text = fi.Comment + ": " + fi.URL + } } b.w.Write([]byte(msg.Username + msg.Text)) } |