Mercurial > prosody-modules
changeset 5900:cb3b2fbf57e7
mod_invites_tracking: Fix traceback when not registering via invite (thanks Link Mauve)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 08 May 2024 12:48:24 +0100 |
parents | 694b62d8a82f |
children | 9ed02a4f6ff4 |
files | mod_invites_tracking/mod_invites_tracking.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_invites_tracking/mod_invites_tracking.lua Sun May 05 17:37:38 2024 +0200 +++ b/mod_invites_tracking/mod_invites_tracking.lua Wed May 08 12:48:24 2024 +0100 @@ -11,7 +11,7 @@ invite_id = validated_invite.token; end - tracking_store:set(new_username, {invite_id = validated_invite.token, invite_source = invite_source}); + tracking_store:set(new_username, {invite_id = invite_id, invite_source = invite_source}); module:log("debug", "recorded that invite from %s was used to create %s", invite_source, new_username) end);