From b24e1bafa180870646bec6b42450d3077b3facd2 Mon Sep 17 00:00:00 2001 From: Wim Date: Sun, 22 Nov 2020 22:21:02 +0100 Subject: Add support for irc to irc notice (irc). Fixes #754 (#1305) --- gateway/gateway.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gateway') 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 { -- cgit v1.2.3