Browse Source

persistence broadcast needs a cap check

tags/v2.11.0-rc1
Shivaram Lingamneni 1 year ago
parent
commit
77de026961
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      irc/handlers.go

+ 1
- 1
irc/handlers.go View File

@@ -2677,7 +2677,7 @@ func reportPersistenceStatus(client *Client, rb *ResponseBuffer, broadcast bool)
2677 2677
 	rb.Add(nil, client.server.name, "PERSISTENCE", "STATUS", storedSettingStr, effectiveSettingStr)
2678 2678
 	if broadcast {
2679 2679
 		for _, session := range client.Sessions() {
2680
-			if session != rb.session {
2680
+			if session != rb.session && session.capabilities.Has(caps.Persistence) {
2681 2681
 				session.Send(nil, client.server.name, "PERSISTENCE", "STATUS", storedSettingStr, effectiveSettingStr)
2682 2682
 			}
2683 2683
 		}

Loading…
Cancel
Save