Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 2847f3c004874a24f6ab4faf13e953ff04b61656 Author: Wim <wim@42.be> Date: Sun Feb 25 00:39:24 2018 +0000 Allow empty messages with file urls (irc) diff --git a/gateway/gateway.go b/gateway/gateway.go index e2db20e..f11d4dc 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -1786 +1787 @@ 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 @@ -2417 +2427 @@ 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 != "" {