Diff

plugins/mod_pubsub/mod_pubsub.lua @ 9725:8ad689b6d26f

mod_pubsub: Split line in config check to improve readability Also makes it easier to compare with mod_pep
author Kim Alvefur <zash@zash.se>
date Sun, 23 Dec 2018 03:06:35 +0100
parent 9724:8e6a0e1c1876
child 9829:fdc42f685557
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua	Sun Dec 23 03:05:58 2018 +0100
+++ b/plugins/mod_pubsub/mod_pubsub.lua	Sun Dec 23 03:06:35 2018 +0100
@@ -103,7 +103,8 @@
 	if (new_config["max_items"] or 1) > max_max_items then
 		return false;
 	end
-	if new_config["access_model"] ~= "whitelist" and new_config["access_model"] ~= "open" then
+	if new_config["access_model"] ~= "whitelist"
+	and new_config["access_model"] ~= "open" then
 		return false;
 	end
 	return true;