Software /
code /
prosody
Comparison
plugins/mod_pubsub/mod_pubsub.lua @ 9724:8e6a0e1c1876
mod_pubsub: Change order of luacheck directives to match arguments they apply to
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Dec 2018 03:05:58 +0100 |
parent | 9720:e7ddf70ae417 |
child | 9725:8ad689b6d26f |
comparison
equal
deleted
inserted
replaced
9723:3c6e266391a2 | 9724:8e6a0e1c1876 |
---|---|
97 module:send(new_stanza); | 97 module:send(new_stanza); |
98 end | 98 end |
99 end | 99 end |
100 | 100 |
101 local max_max_items = module:get_option_number("pubsub_max_items", 256); | 101 local max_max_items = module:get_option_number("pubsub_max_items", 256); |
102 function check_node_config(node, actor, new_config) -- luacheck: ignore 212/actor 212/node | 102 function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node 212/actor |
103 if (new_config["max_items"] or 1) > max_max_items then | 103 if (new_config["max_items"] or 1) > max_max_items then |
104 return false; | 104 return false; |
105 end | 105 end |
106 if new_config["access_model"] ~= "whitelist" and new_config["access_model"] ~= "open" then | 106 if new_config["access_model"] ~= "whitelist" and new_config["access_model"] ~= "open" then |
107 return false; | 107 return false; |