Diff

plugins/mod_invites_register.lua @ 13850:0326e1338d73

Merge 13.0->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 16 Apr 2025 12:03:08 +0100
parent 13849:068e77bf91b9
line wrap: on
line diff
--- a/plugins/mod_invites_register.lua	Mon Apr 14 15:51:05 2025 +0200
+++ b/plugins/mod_invites_register.lua	Wed Apr 16 12:03:08 2025 +0100
@@ -103,7 +103,7 @@
 	end
 	if validated_invite then
 		local username = validated_invite.username;
-		if username and username ~= event.username then
+		if validated_invite.type ~= "roster" and username and username ~= event.username then
 			event.allowed = false;
 			event.reason = "The chosen username is not valid with this invitation";
 		end