commit 73253577e064dd7f466db4f57fc444b464005849
Author: Wim <wim@42.be>
Date: Thu Feb 21 20:33:49 2019 +0000
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 36ef3eb..0c04a16 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -1907 +1907 @@ func (gw *Gateway) getDestChannel(msg *config.Message, dest bridge.Bridge) []con
if msg.Event == config.EventJoinLeave && getProtocol(msg) == "irc" && msg.Channel == "" {
// if we only have one channel on this irc bridge it's got to be the sending one.
// don't send it back
- if channel.Account == msg.Account && len(dest.Channels) == 1 && dest.Protocol == "irc" {
+ if dest.Account == msg.Account && len(dest.Channels) == 1 && dest.Protocol == "irc" {
return channels
}
for _, channel := range gw.Channels {