Mercurial > prosody-hg
comparison plugins/mod_pubsub/mod_pubsub.lua @ 11732:5735f931f5c4
mod_pubsub: Update callbacks on reload to more completely refresh config
This would also release any resources held via references from these
callbacks.
I'm not sure why we don't just re-new() the whole thing.
Related to #1382
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 29 Jul 2021 17:37:27 +0200 |
| parents | 76156c675456 |
| children | 14a679588b7b |
comparison
equal
deleted
inserted
replaced
| 11731:076ceb405b94 | 11732:5735f931f5c4 |
|---|---|
| 184 function set_service(new_service) | 184 function set_service(new_service) |
| 185 service = new_service; | 185 service = new_service; |
| 186 service.config.autocreate_on_publish = autocreate_on_publish; | 186 service.config.autocreate_on_publish = autocreate_on_publish; |
| 187 service.config.autocreate_on_subscribe = autocreate_on_subscribe; | 187 service.config.autocreate_on_subscribe = autocreate_on_subscribe; |
| 188 service.config.expose_publisher = expose_publisher; | 188 service.config.expose_publisher = expose_publisher; |
| 189 | |
| 190 service.config.nodestore = node_store; | |
| 191 service.config.itemstore = create_simple_itemstore; | |
| 192 service.config.broadcaster = simple_broadcast; | |
| 193 service.config.itemcheck = is_item_stanza; | |
| 194 service.config.check_node_config = check_node_config; | |
| 195 service.config.get_affiliation = get_affiliation; | |
| 196 | |
| 189 module.environment.service = service; | 197 module.environment.service = service; |
| 190 add_disco_features_from_service(service); | 198 add_disco_features_from_service(service); |
| 191 end | 199 end |
| 192 | 200 |
| 193 function module.save() | 201 function module.save() |
