Changeset

9082:297a06074175

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
author Kim Alvefur <zash@zash.se>
date Fri, 03 Aug 2018 20:39:18 +0200
parents 9081:ce57c69a20e2
children 9083:5d3639e415bd
files plugins/mod_pep.lua
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pep.lua	Fri Aug 03 17:48:41 2018 +0200
+++ b/plugins/mod_pep.lua	Fri Aug 03 20:39:18 2018 +0200
@@ -44,6 +44,7 @@
 	if (new_config["max_items"] or 1) > max_max_items then
 		return false;
 	end
+	return true;
 end
 
 local function subscription_presence(username, recipient)