From e83f8984a8c1085a36ff2f4e3cc64eb8912e3869 Mon Sep 17 00:00:00 2001
From: Kim Alvefur <zash@zash.se>
Date: Sun, 7 May 2023 12:52:31 +0200
Subject: mod_invites: Fix password reset invites

Caused by roles changing from table|nil to always table in c2616274bef7
---
 plugins/mod_invites.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'plugins')

diff --git a/plugins/mod_invites.lua b/plugins/mod_invites.lua
index 024b86cf..34720a51 100644
--- a/plugins/mod_invites.lua
+++ b/plugins/mod_invites.lua
@@ -321,7 +321,7 @@ function module.command(arg)
 
 	local invite;
 	if allow_reset then
-		if roles then
+		if roles[1] then
 			print("--role/--admin and --reset are mutually exclusive")
 			return 2;
 		end
-- 
cgit v1.2.3