Software /
code /
prosody
Changeset
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 |
parents | 9724:8e6a0e1c1876 |
children | 9726:a726668b3c48 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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;