Mercurial > prosody-hg
comparison plugins/mod_pubsub/mod_pubsub.lua @ 11725:789da12cf232
mod_pubsub: Silence warning about 'service' as argument [luacheck]
Maybe the 'service' in the outer scope should be moved down to minimize
overlap with other functions that receive the same service as argument?
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 25 Jul 2021 16:33:19 +0200 |
| parents | 72512c0858b3 |
| children | 76156c675456 |
comparison
equal
deleted
inserted
replaced
| 11724:86e68c0a4f05 | 11725:789da12cf232 |
|---|---|
| 55 local archive = driver:open("pubsub_"..node_name, "archive"); | 55 local archive = driver:open("pubsub_"..node_name, "archive"); |
| 56 local max_items = tonumber_max_items(node_config["max_items"]); | 56 local max_items = tonumber_max_items(node_config["max_items"]); |
| 57 return lib_pubsub.archive_itemstore(archive, max_items, nil, node_name); | 57 return lib_pubsub.archive_itemstore(archive, max_items, nil, node_name); |
| 58 end | 58 end |
| 59 | 59 |
| 60 function simple_broadcast(kind, node, jids, item, actor, node_obj, service) | 60 function simple_broadcast(kind, node, jids, item, actor, node_obj, service) --luacheck: ignore 431/service |
| 61 if node_obj then | 61 if node_obj then |
| 62 if node_obj.config["notify_"..kind] == false then | 62 if node_obj.config["notify_"..kind] == false then |
| 63 return; | 63 return; |
| 64 end | 64 end |
| 65 end | 65 end |
