Diff

plugins/mod_pep.lua @ 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
parent 9080:1b21f8ffaec8
child 9097:ce2ba9f91c84
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)