summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
authorWim <wim@42.be>2017-11-24 22:55:24 +0100
committerWim <wim@42.be>2017-11-24 22:55:24 +0100
commit7ec95f786d55aab69541cb3065ea2c9b8eaf9c43 (patch)
tree1ad62ec1669c40ba9a9ad88474df43866d60450e /bridge/irc
parent1efe40add50a76b7a0ad95187f6034cc75845d16 (diff)
downloadmatterbridge-msglm-7ec95f786d55aab69541cb3065ea2c9b8eaf9c43.tar.gz
matterbridge-msglm-7ec95f786d55aab69541cb3065ea2c9b8eaf9c43.tar.bz2
matterbridge-msglm-7ec95f786d55aab69541cb3065ea2c9b8eaf9c43.zip
Use mediaserver urls for irc,gitter and xmpp
Diffstat (limited to 'bridge/irc')
-rw-r--r--bridge/irc/irc.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index f1ed5bd8..2d56bbc6 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -184,13 +184,11 @@ func (b *Birc) Send(msg config.Message) (string, error) {
fi := f.(config.FileInfo)
if fi.URL != "" {
msg.Text = fi.URL
- b.Local <- config.Message{Text: msg.Text, Username: msg.Username, Channel: msg.Channel, Event: msg.Event}
- } else {
- b.Local <- config.Message{Text: msg.Text, Username: msg.Username, Channel: msg.Channel, Event: msg.Event}
}
+ b.Local <- config.Message{Text: msg.Text, Username: msg.Username, Channel: msg.Channel, Event: msg.Event}
}
+ return "", nil
}
- return "", nil
}
for _, text := range strings.Split(msg.Text, "\n") {