From 77de026961aa30920bb9003bcae4219e5c426549 Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Mon, 8 Aug 2022 01:06:19 -0400 Subject: [PATCH] persistence broadcast needs a cap check --- irc/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irc/handlers.go b/irc/handlers.go index 5c086271..05b713d2 100644 --- a/irc/handlers.go +++ b/irc/handlers.go @@ -2677,7 +2677,7 @@ func reportPersistenceStatus(client *Client, rb *ResponseBuffer, broadcast bool) rb.Add(nil, client.server.name, "PERSISTENCE", "STATUS", storedSettingStr, effectiveSettingStr) if broadcast { for _, session := range client.Sessions() { - if session != rb.session { + if session != rb.session && session.capabilities.Has(caps.Persistence) { session.Send(nil, client.server.name, "PERSISTENCE", "STATUS", storedSettingStr, effectiveSettingStr) } }