Changeset

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
parents 13095:1693bd4de283
children 13097:6771acb8e857
files plugins/mod_invites.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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