aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_invites_register.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_invites_register.lua b/plugins/mod_invites_register.lua
index 76b644c7..27824db1 100644
--- a/plugins/mod_invites_register.lua
+++ b/plugins/mod_invites_register.lua
@@ -103,7 +103,7 @@ module:hook("user-registering", function (event)
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