4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 01:49:22 +00:00

Add support for irc to irc notice (irc). Fixes #754 (#1305)

This commit is contained in:
Wim
2020-11-22 22:21:02 +01:00
committed by GitHub
parent 64b899ac89
commit b24e1bafa1
4 changed files with 27 additions and 4 deletions

View File

@ -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 {