mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-15 00:19:24 +01:00
Return when not connected and drop a message (irc). Fixes #786
This commit is contained in:
parent
115d20373c
commit
60a85621ea
@ -137,6 +137,7 @@ func (b *Birc) Send(msg config.Message) (string, error) {
|
|||||||
// we can be in between reconnects #385
|
// we can be in between reconnects #385
|
||||||
if !b.i.IsConnected() {
|
if !b.i.IsConnected() {
|
||||||
b.Log.Error("Not connected to server, dropping message")
|
b.Log.Error("Not connected to server, dropping message")
|
||||||
|
return "", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Execute a command
|
// Execute a command
|
||||||
|
Loading…
Reference in New Issue
Block a user