Software /
code /
prosody-modules
Diff
mod_invites_tracking/mod_invites_tracking.lua @ 5924: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 |
parent | 4394:32f1f18f4874 |
child | 5925:9ed02a4f6ff4 |
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);