summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2019-02-21 20:33:49 +0100
committerWim <wim@42.be>2019-02-21 20:33:49 +0100
commitdffd67eb311580aa2b14e7f5a069cfefdbf3aacc (patch)
tree6a1d73ed516779fcdd3bef1faeff4fd754510b05 /gateway/gateway.go
parent55e79063d6edbbf4560fd14edc45ce9558afaf7a (diff)
downloadmatterbridge-msglm-dffd67eb311580aa2b14e7f5a069cfefdbf3aacc.tar.gz
matterbridge-msglm-dffd67eb311580aa2b14e7f5a069cfefdbf3aacc.tar.bz2
matterbridge-msglm-dffd67eb311580aa2b14e7f5a069cfefdbf3aacc.zip
Fix typo
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 36ef3ebe..0c04a167 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -190,7 +190,7 @@ 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 {