From 60a85621eaaf511e67a1c2a9a0853caf3eed5a16 Mon Sep 17 00:00:00 2001 From: Wim Date: Sat, 6 Apr 2019 22:34:41 +0200 Subject: Return when not connected and drop a message (irc). Fixes #786 --- bridge/irc/irc.go | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v1.2.3