aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit46d630b02de34e8e516fbd2fac096b5c2d8ae8e8 (patch)
tree6302c36744c4180be4622e617a502845bfe622ca /plugins
parente4b27b4e7a5e21fc272c9b33d4184a94df7e76d1 (diff)
downloadprosody-46d630b02de34e8e516fbd2fac096b5c2d8ae8e8.tar.gz
prosody-46d630b02de34e8e516fbd2fac096b5c2d8ae8e8.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')
-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)