Mercurial > prosody-hg
changeset 13899:b019a30cc1b2
mod_invites: Switch to new bool_params for util.argparse
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 19 Jun 2025 11:19:49 +0100 |
| parents | aac30c5ee334 |
| children | d7e907830260 |
| files | plugins/mod_invites.lua |
| diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_invites.lua Thu Jun 19 11:19:13 2025 +0100 +++ b/plugins/mod_invites.lua Thu Jun 19 11:19:49 2025 +0100 @@ -260,7 +260,7 @@ flags = { array_params = { role = true, group = have_group_invites }; value_params = { expires_after = true }; - kv_params = { admin = true }; + bool_params = { admin = true }; }; handler = function (self, user_jid, opts) --luacheck: ignore 212/self @@ -326,7 +326,7 @@ host_selector = "user_jid"; flags = { value_params = { expires_after = true }; - kv_params = { allow_registration = true }; + bool_params = { allow_registration = true }; }; handler = function (self, user_jid, opts) --luacheck: ignore 212/self
