diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-23 03:06:35 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-23 03:06:35 +0100 |
commit | d39cf4f42e2ec7afff198437a7ccb82f8b7664ab (patch) | |
tree | 72db2fe7834111689d929bf6e8236d33dcae7c69 | |
parent | 6c573bacf091c7fe4e15591833639003b2519a3b (diff) | |
download | prosody-d39cf4f42e2ec7afff198437a7ccb82f8b7664ab.tar.gz prosody-d39cf4f42e2ec7afff198437a7ccb82f8b7664ab.zip |
mod_pubsub: Split line in config check to improve readability
Also makes it easier to compare with mod_pep
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index abc4fee8..0036b48f 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -103,7 +103,8 @@ function check_node_config(node, actor, new_config) -- luacheck: ignore 212/node if (new_config["max_items"] or 1) > max_max_items then return false; end - if new_config["access_model"] ~= "whitelist" and new_config["access_model"] ~= "open" then + if new_config["access_model"] ~= "whitelist" + and new_config["access_model"] ~= "open" then return false; end return true; |