aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-23 03:06:35 +0100
committerKim Alvefur <zash@zash.se>2018-12-23 03:06:35 +0100
commit1900ae8261698d59245f589289b88a384bf743cb (patch)
tree72db2fe7834111689d929bf6e8236d33dcae7c69 /plugins/mod_pubsub/mod_pubsub.lua
parent27112c0d94020fc1e24ed2b8c1673042f7a02798 (diff)
downloadprosody-1900ae8261698d59245f589289b88a384bf743cb.tar.gz
prosody-1900ae8261698d59245f589289b88a384bf743cb.zip
mod_pubsub: Split line in config check to improve readability
Also makes it easier to compare with mod_pep
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua3
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;