# HG changeset patch # User Kim Alvefur # Date 1627223599 -7200 # Node ID 789da12cf23239ac9e5149ee8869b376db791933 # Parent 86e68c0a4f056928506dbcec327e576f2ab17e89 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? diff -r 86e68c0a4f05 -r 789da12cf232 plugins/mod_pubsub/mod_pubsub.lua --- a/plugins/mod_pubsub/mod_pubsub.lua Sun Jul 25 16:31:15 2021 +0200 +++ b/plugins/mod_pubsub/mod_pubsub.lua Sun Jul 25 16:33:19 2021 +0200 @@ -57,7 +57,7 @@ return lib_pubsub.archive_itemstore(archive, max_items, nil, node_name); end -function simple_broadcast(kind, node, jids, item, actor, node_obj, service) +function simple_broadcast(kind, node, jids, item, actor, node_obj, service) --luacheck: ignore 431/service if node_obj then if node_obj.config["notify_"..kind] == false then return;