changeset 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 c6010e1322aa
children 6d067ec8ec4a 2f754817bf4b
files plugins/mod_invites.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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