diff options
author | Wim <wim@42.be> | 2020-11-22 22:21:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-22 22:21:02 +0100 |
commit | b24e1bafa180870646bec6b42450d3077b3facd2 (patch) | |
tree | 0c66487e72b85c12dfa59e3feaa6edac62fe7739 /gateway/gateway.go | |
parent | 64b899ac8944f5bd94dfddcefeac8c0f4141be62 (diff) | |
download | matterbridge-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.go | 5 |
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 { |