# HG changeset patch # User Kim Alvefur # Date 1683456751 -7200 # Node ID 9638ff8b1c815eb3484469ecea463872c489cc1e # Parent 1693bd4de283bd46f9e522e30d20eeafb162ebe4 mod_invites: Fix password reset invites Caused by roles changing from table|nil to always table in c2616274bef7 diff -r 1693bd4de283 -r 9638ff8b1c81 plugins/mod_invites.lua --- 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