mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-14 16:43:36 -07:00
persistence broadcast needs a cap check
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user