From 37cc9490328d17da12216c3aabc6a9c5cb381ba2 Mon Sep 17 00:00:00 2001 From: contact Date: Sat, 12 Feb 2022 18:07:30 +0000 Subject: [PATCH] Ignore READ commands for service git-svn-id: file:///srv/svn/repo/suika/trunk@783 f0ae65fe-ee39-954e-97ec-027ff2717ef4 --- 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