aboutsummaryrefslogtreecommitdiffstats
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
commitd39cf4f42e2ec7afff198437a7ccb82f8b7664ab (patch)
tree72db2fe7834111689d929bf6e8236d33dcae7c69
parent6c573bacf091c7fe4e15591833639003b2519a3b (diff)
downloadprosody-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.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;