summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
Diffstat (limited to 'gateway/gateway.go')
-rw-r--r--gateway/gateway.go17
1 files changed, 0 insertions, 17 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index 9957a21d..e76e1d59 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -212,23 +212,6 @@ func (gw *Gateway) getDestChannel(msg *config.Message, dest bridge.Bridge) []con
return channels
}
- // irc quit is for the whole bridge, isn't a per channel quit.
- // channel is empty when we quit
- 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 dest.Account == msg.Account && len(dest.Channels) == 1 && dest.Protocol == "irc" {
- return channels
- }
- for _, channel := range gw.Channels {
- if channel.Account == dest.Account && strings.Contains(channel.Direction, "out") &&
- gw.validGatewayDest(msg) {
- channels = append(channels, *channel)
- }
- }
- return channels
- }
-
// if source channel is in only, do nothing
for _, channel := range gw.Channels {
// lookup the channel from the message