mod_invites: Fix password reset invites
authorKim Alvefur <zash@zash.se>
Sun, 07 May 2023 12:52:31 +0200
changeset 13100 9638ff8b1c81
parent 13099 1693bd4de283
child 13101 6771acb8e857
mod_invites: Fix password reset invites Caused by roles changing from table|nil to always table in c2616274bef7
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