# HG changeset patch # User Matthew Wild # Date 1744801351 -3600 # Node ID 068e77bf91b9c8347cf22fbe6c693dc8638a8535 # Parent cbd234461c41766dab920af0022937412f14f7ac mod_invites_register: Don't restrict username for roster invites (thanks lissine) The username field of roster invites is the username of the inviter. It is not possible for a roster invite to restrict the registration username. diff -r cbd234461c41 -r 068e77bf91b9 plugins/mod_invites_register.lua --- a/plugins/mod_invites_register.lua Mon Apr 14 15:10:29 2025 +0200 +++ b/plugins/mod_invites_register.lua Wed Apr 16 12:02:31 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