Mercurial > prosody-modules
changeset 4848:5001104f0275
Back out ad7767a9f3ea
Turns out it does error on 0.11 because it tries to compare a number
with the string "max"
Thanks Marcel
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 05 Jan 2022 00:06:24 +0100 |
parents | a280878c4ef2 |
children | 192b7aaa3888 |
files | mod_bookmarks2/mod_bookmarks2.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_bookmarks2/mod_bookmarks2.lua Tue Jan 04 23:22:31 2022 +0100 +++ b/mod_bookmarks2/mod_bookmarks2.lua Wed Jan 05 00:06:24 2022 +0100 @@ -20,7 +20,7 @@ ["access_model"] = "whitelist"; }; -if not mod_pep.check_node_config(nil, nil, default_options) then +if not pcall(mod_pep.check_node_config, nil, nil, default_options) then -- 0.11 or earlier not supporting max_items="max" trows an error here module:log("debug", "Setting max_items=pep_max_items because 'max' is not supported in this version"); default_options["max_items"] = module:get_option_number("pep_max_items", 256);