Software /
code /
prosody
Diff
plugins/mod_invites.lua @ 13725:c51140dfbc4e 13.0
mod_invites: Fix storing --group (thanks lissine)
This made it ignore `--group` completely, but if you incorrectly used
`--group foo` it would store `groups=true`.
Introduced in 9ba11ef91ce4
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 17 Feb 2025 00:55:27 +0100 |
parent | 13701:1aa7efabeacb |
child | 13738:26a0f653793e |
line wrap: on
line diff
--- a/plugins/mod_invites.lua Sun Feb 16 14:19:16 2025 +0000 +++ b/plugins/mod_invites.lua Mon Feb 17 00:55:27 2025 +0100 @@ -515,7 +515,7 @@ end local roles = opts.role or {}; - local groups = opts.groups or {}; + local groups = opts.group or {}; if opts.admin then -- Insert it first since we don't get order out of argparse