aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_invites.lua
Commit message (Collapse)AuthorAgeFilesLines
* mod_invites: Fix argument handlingKim Alvefur2024-01-211-1/+1
| | | | | Not sure what the next() was supposed to do. Reject unknown --options perhaps?
* mod_invites: Show short help instead of traceback on missing hostnameKim Alvefur2024-01-131-2/+3
|
* mod_invites: Show help if --help passed instead of hostnameKim Alvefur2024-01-131-18/+25
| | | | | Because I couldn't guess the right way to get the help message without reading the source twice.
* mod_invites: Allow specifying invite ttl on command lineKim Alvefur2024-01-131-1/+3
| | | | Was missing a way to pass TTL via command or shell.
* mod_invites: Fix linter issuesMatthew Wild2023-11-291-4/+4
|
* mod_invites: Use new shell-command APIMatthew Wild2023-11-291-22/+25
|
* plugins: Switch to :get_option_period() for time range optionsKim Alvefur2023-07-161-1/+1
| | | | Improves readability ("1 day" vs 86400) and centralizes validation.
* mod_invites: Refactor argument handling using util.argparseKim Alvefur2022-01-121-63/+59
| | | | | | | | | | This makes it so that --admin and --role are no longer mutually exclusive, they the former is simply treated as another --role. This was likely a leftover from when only a single role was possible. It does however become unclear which should be the primary, since the order is not preserved by argparse. Bonus: Loading of modules is avoided with only the --help is shown.
* mod_invites: Fix password reset invitesKim Alvefur2023-05-071-1/+1
| | | | Caused by roles changing from table|nil to always table in c2616274bef7
* mod_invites: Record roles as ordered list, first becoming primary roleKim Alvefur2023-03-301-4/+4
| | | | For mod_invites_register to apply on user creation.
* plugins: Prefix module imports with prosody namespaceKim Alvefur2023-03-241-8/+8
|
* mod_invites: Prefer landing page over xmpp URI in shell commandKim Alvefur2023-01-101-2/+2
| | | | To mirror behavior of prosodyctl invocation
* mod_invites: Comment on module loading for HTTP invite URLsKim Alvefur2022-01-051-0/+1
|
* mod_invites: Silence luacheck warningKim Alvefur2022-01-051-1/+1
|
* mod_invites: Import from prosdy-modules@5fc306239db3Kim Alvefur2021-12-271-0/+339