Mercurial > prosody-hg
diff plugins/mod_invites.lua @ 13896:17b5a10bd9c9 13.0
mod_invites: Fix --admin to not require a value
I have no idea what "kv" means here but this seems to be the way to
declare flags that do not take a value in strict mode, which is
apparently default for shell-commands.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 18 Jun 2025 15:02:02 +0200 |
| parents | c83fdee8efda |
| children | b019a30cc1b2 f0b2a05bcedc |
line wrap: on
line diff
--- a/plugins/mod_invites.lua Thu Jun 05 21:13:51 2025 +0200 +++ b/plugins/mod_invites.lua Wed Jun 18 15:02:02 2025 +0200 @@ -259,7 +259,8 @@ host_selector = "user_jid"; flags = { array_params = { role = true, group = have_group_invites }; - value_params = { expires_after = true, admin = true }; + value_params = { expires_after = true }; + kv_params = { admin = true }; }; handler = function (self, user_jid, opts) --luacheck: ignore 212/self
