From 7764493298760ec8d33f5387ea2fb6c4705a407e Mon Sep 17 00:00:00 2001 From: Wim Date: Thu, 1 Feb 2018 00:41:09 +0100 Subject: Add comment to file upload from telegram. Show comments on all bridges. Closes #358 --- bridge/irc/irc.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bridge/irc') diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go index 117398f1..8e85fa29 100644 --- a/bridge/irc/irc.go +++ b/bridge/irc/irc.go @@ -180,6 +180,9 @@ func (b *Birc) Send(msg config.Message) (string, error) { if len(msg.Extra["file"]) > 0 { for _, f := range msg.Extra["file"] { fi := f.(config.FileInfo) + if fi.Comment != "" { + msg.Text += fi.Comment + ":" + } if fi.URL != "" { msg.Text = fi.URL } -- cgit v1.2.3