Diff

plugins/mod_invites.lua @ 13096:9638ff8b1c81

mod_invites: Fix password reset invites Caused by roles changing from table|nil to always table in c2616274bef7
author Kim Alvefur <zash@zash.se>
date Sun, 07 May 2023 12:52:31 +0200
parent 13012:c2616274bef7
child 13161:9ba11ef91ce4
line wrap: on
line diff
--- 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