aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-03 20:39:18 +0200
committerKim Alvefur <zash@zash.se>2018-08-03 20:39:18 +0200
commit60b3cc3a00a492f8fcf2b08b253210c867936902 (patch)
tree6302c36744c4180be4622e617a502845bfe622ca /plugins/mod_pep.lua
parent9bc2a2e2ff78ed5a8e6f05009ff0d32f1442e529 (diff)
downloadprosody-60b3cc3a00a492f8fcf2b08b253210c867936902.tar.gz
prosody-60b3cc3a00a492f8fcf2b08b253210c867936902.zip
mod_pep: Return true if all node config checks passes (fixes configuration)
util.pubsub would treat the default nil return as falsy and reject all attempts to configure nodes
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua
index 110929b0..7b933e72 100644
--- a/plugins/mod_pep.lua
+++ b/plugins/mod_pep.lua
@@ -44,6 +44,7 @@ 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
+ return true;
end
local function subscription_presence(username, recipient)