# HG changeset patch # User Kim Alvefur # Date 1545530795 -3600 # Node ID 8ad689b6d26fec0c536c498353c4f8f19520311d # Parent 8e6a0e1c187616b1330cfef53b640de6a96e4300 mod_pubsub: Split line in config check to improve readability Also makes it easier to compare with mod_pep diff -r 8e6a0e1c1876 -r 8ad689b6d26f plugins/mod_pubsub/mod_pubsub.lua --- 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;