# HG changeset patch # User Matthew Wild # Date 1748865057 -3600 # Node ID c83fdee8efda0a61b6a277405641dfe2d1370aa2 # Parent 8769ca1b4c0f7b803e9e86117bbe3d1800209ce4 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. diff -r 8769ca1b4c0f -r c83fdee8efda plugins/mod_invites.lua --- 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