# HG changeset patch # User Matthew Wild # Date 1715168921 -3600 # Node ID 9ed02a4f6ff419c6f5732548941db6b0fa686b2a # Parent cb3b2fbf57e71db5b1e06a0e80e09f6d04464202 mod_invites_tracking: Don't bother storing anything for non-invite IBR diff -r cb3b2fbf57e7 -r 9ed02a4f6ff4 mod_invites_tracking/mod_invites_tracking.lua --- a/mod_invites_tracking/mod_invites_tracking.lua Wed May 08 12:48:24 2024 +0100 +++ b/mod_invites_tracking/mod_invites_tracking.lua Wed May 08 12:48:41 2024 +0100 @@ -4,6 +4,11 @@ local validated_invite = event.validated_invite or (event.session and event.session.validated_invite); local new_username = event.username; + if not validated_invite then + module:log("debug", "No invitation found for registration of %s", new_username); + return; + end + local invite_id = nil; local invite_source = nil; if validated_invite then