mod_invites: Fix password reset invites
Caused by roles changing from table|nil to always table in c2616274bef7
--- a/plugins/mod_invites.lua Sun May 07 12:27:55 2023 +0200
+++ b/plugins/mod_invites.lua Sun May 07 12:52:31 2023 +0200
@@ -321,7 +321,7 @@
local invite;
if allow_reset then
- if roles then
+ if roles[1] then
print("--role/--admin and --reset are mutually exclusive")
return 2;
end