summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-02-25 00:39:24 +0100
committerWim <wim@42.be>2018-02-25 00:40:07 +0100
commit82396e73f5c4036862009306c0557c13f9cd14ab (patch)
tree3ff48831199a682485efb51021203ca805fe1243
parentba928b169db6548282f9c9b84e359bdfa008069e (diff)
downloadmatterbridge-msglm-82396e73f5c4036862009306c0557c13f9cd14ab.tar.gz
matterbridge-msglm-82396e73f5c4036862009306c0557c13f9cd14ab.tar.bz2
matterbridge-msglm-82396e73f5c4036862009306c0557c13f9cd14ab.zip
Allow empty messages with file urls (irc)
-rw-r--r--gateway/gateway.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index e2db20eb..f11d4dc3 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -178,6 +178,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
dest.Protocol != "telegram" &&
dest.Protocol != "matrix" &&
dest.Protocol != "xmpp" &&
+ dest.Protocol != "irc" &&
len(msg.Extra[config.EVENT_FILE_FAILURE_SIZE]) == 0 {
if msg.Text == "" {
return brMsgIDs
@@ -241,7 +242,7 @@ func (gw *Gateway) handleMessage(msg config.Message, dest *bridge.Bridge) []*BrM
}
mID, err := dest.Send(msg)
if err != nil {
- fmt.Println(err)
+ flog.Error(err)
}
// append the message ID (mID) from this bridge (dest) to our brMsgIDs slice
if mID != "" {