From 155e811cd9f384e0141906b5a33c46bfe08d5d32 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Sat, 12 Feb 2022 19:07:30 +0100 Subject: [PATCH] Ignore READ commands for service --- downstream.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/downstream.go b/downstream.go index e2191a6..30ef902 100644 --- a/downstream.go +++ b/downstream.go @@ -2766,6 +2766,16 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc. criteria = msg.Params[1] } + // We don't save read receipts for our service + if casemapASCII(target) == serviceNickCM { + dc.SendMessage(&irc.Message{ + Prefix: dc.prefix(), + Command: "READ", + Params: []string{target, "*"}, + }) + return nil + } + uc, entity, err := dc.unmarshalEntity(target) if err != nil { return err