summaryrefslogtreecommitdiffstats
path: root/gateway
diff options
context:
space:
mode:
Diffstat (limited to 'gateway')
-rw-r--r--gateway/gateway.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/gateway/gateway.go b/gateway/gateway.go
index c1440c05..1508ced2 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -430,6 +430,11 @@ func (gw *Gateway) SendMessage(
}
}
+ // Only send irc notices to irc
+ if msg.Event == config.EventNoticeIRC && dest.Protocol != "irc" {
+ return "", nil
+ }
+
// Too noisy to log like other events
debugSendMessage := ""
if msg.Event != config.EventUserTyping {