changeset 13892:c83fdee8efda 13.0

mod_invites: Accept --admin flag as shortcut for --role prosody:admin The code was there, but the flag was not included in the command description so it was rejected during validation.
author Matthew Wild <mwild1@gmail.com>
date Mon, 02 Jun 2025 12:50:57 +0100
parents 8769ca1b4c0f
children 994634991482 c6010e1322aa
files plugins/mod_invites.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_invites.lua	Thu May 29 17:41:35 2025 +0200
+++ b/plugins/mod_invites.lua	Mon Jun 02 12:50:57 2025 +0100
@@ -259,7 +259,7 @@
 	host_selector = "user_jid";
 	flags = {
 		array_params = { role = true, group = have_group_invites };
-		value_params = { expires_after = true };
+		value_params = { expires_after = true, admin = true };
 	};
 
 	handler = function (self, user_jid, opts) --luacheck: ignore 212/self