mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
spec update: send RPL_METADATASUBS in a metadata-subs batch
This commit is contained in:
parent
2c7a423339
commit
7f4dd149e6
1 changed files with 3 additions and 0 deletions
|
|
@ -3355,6 +3355,9 @@ func metadataSubsHandler(client *Client, subcommand string, params []string, rb
|
|||
|
||||
subs := rb.session.MetadataSubscriptions()
|
||||
|
||||
batchID := rb.StartNestedBatch("metadata-subs")
|
||||
defer rb.EndNestedBatch(batchID)
|
||||
|
||||
chunked := utils.ChunkifyParams(maps.Keys(subs), lineLength)
|
||||
for _, line := range chunked {
|
||||
params := append([]string{client.Nick()}, line...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue