aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-05-07 12:52:31 +0200
committerKim Alvefur <zash@zash.se>2023-05-07 12:52:31 +0200
commite83f8984a8c1085a36ff2f4e3cc64eb8912e3869 (patch)
treec14002b0e29a98c15110769a378fed34dfd4f377 /plugins
parent33c20d9cf432a5c4c2d380ce22e728344c259983 (diff)
downloadprosody-e83f8984a8c1085a36ff2f4e3cc64eb8912e3869.tar.gz
prosody-e83f8984a8c1085a36ff2f4e3cc64eb8912e3869.zip
mod_invites: Fix password reset invites
Caused by roles changing from table|nil to always table in c2616274bef7
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_invites.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_invites.lua b/plugins/mod_invites.lua
index 024b86cf..34720a51 100644
--- a/plugins/mod_invites.lua
+++ b/plugins/mod_invites.lua
@@ -321,7 +321,7 @@ function module.command(arg)
local invite;
if allow_reset then
- if roles then
+ if roles[1] then
print("--role/--admin and --reset are mutually exclusive")
return 2;
end