mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08:00
persistence broadcast needs a cap check
This commit is contained in:
parent
898f84c613
commit
77de026961
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue