diff plugins/mod_invites.lua @ 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 ecafafec7806
children 17b5a10bd9c9
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