summaryrefslogtreecommitdiffstats
path: root/bridge/irc/irc.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-04-06 22:34:41 +0200
committerWim <wim@42.be>2019-04-06 22:34:41 +0200
commit60a85621eaaf511e67a1c2a9a0853caf3eed5a16 (patch)
treed80ffa3e4fe02e13dea36b5d0c00860258a6b366 /bridge/irc/irc.go
parent115d20373c21b107a428a55247c64f900e116038 (diff)
downloadmatterbridge-msglm-60a85621eaaf511e67a1c2a9a0853caf3eed5a16.tar.gz
matterbridge-msglm-60a85621eaaf511e67a1c2a9a0853caf3eed5a16.tar.bz2
matterbridge-msglm-60a85621eaaf511e67a1c2a9a0853caf3eed5a16.zip
Return when not connected and drop a message (irc). Fixes #786
Diffstat (limited to 'bridge/irc/irc.go')
-rw-r--r--bridge/irc/irc.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/irc/irc.go b/bridge/irc/irc.go
index 51842544..ddc90b57 100644
--- a/bridge/irc/irc.go
+++ b/bridge/irc/irc.go
@@ -137,6 +137,7 @@ func (b *Birc) Send(msg config.Message) (string, error) {
// we can be in between reconnects #385
if !b.i.IsConnected() {
b.Log.Error("Not connected to server, dropping message")
+ return "", nil
}
// Execute a command