From 46d630b02de34e8e516fbd2fac096b5c2d8ae8e8 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 3 Aug 2018 20:39:18 +0200 Subject: 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 --- plugins/mod_pep.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/mod_pep.lua') 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) -- cgit v1.2.3