summaryrefslogtreecommitdiffstats
path: root/gateway/gateway.go
diff options
context:
space:
mode:
authorWim <wim@42.be>2020-11-22 22:21:02 +0100
committerGitHub <noreply@github.com>2020-11-22 22:21:02 +0100
commitb24e1bafa180870646bec6b42450d3077b3facd2 (patch)
tree0c66487e72b85c12dfa59e3feaa6edac62fe7739 /gateway/gateway.go
parent64b899ac8944f5bd94dfddcefeac8c0f4141be62 (diff)
downloadmatterbridge-msglm-b24e1bafa180870646bec6b42450d3077b3facd2.tar.gz
matterbridge-msglm-b24e1bafa180870646bec6b42450d3077b3facd2.tar.bz2
matterbridge-msglm-b24e1bafa180870646bec6b42450d3077b3facd2.zip
Add support for irc to irc notice (irc). Fixes #754 (#1305)
Diffstat (limited to 'gateway/gateway.go')
-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 {