mod_pep: Return true if all node config checks passes (fixes configuration)
authorKim Alvefur <zash@zash.se>
Fri, 03 Aug 2018 20:39:18 +0200
changeset 9085 297a06074175
parent 9084 ce57c69a20e2
child 9086 5d3639e415bd
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
--- 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)