summaryrefslogtreecommitdiffstats
path: root/bridge/irc
diff options
context:
space:
mode:
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") {