# HG changeset patch # User Jonas Schäfer # Date 1611673742 -3600 # Node ID df9bb3d861f93d208fa6e99e9b6ddf20e7540b3d # Parent 32f1f18f48742d972998c8dc4ab32fc6d46a7631 mod_invites_adhoc: add information about who created an invitation diff -r 32f1f18f4874 -r df9bb3d861f9 mod_invites_adhoc/mod_invites_adhoc.lua --- a/mod_invites_adhoc/mod_invites_adhoc.lua Tue Jan 26 16:05:49 2021 +0100 +++ b/mod_invites_adhoc/mod_invites_adhoc.lua Tue Jan 26 16:09:02 2021 +0100 @@ -63,8 +63,10 @@ -- This is an admin-only command that creates a new invitation suitable for registering -- a new account. It does not add the new user to the admin's roster. module:provides("adhoc", new_adhoc("Create new account invite", "urn:xmpp:invite#create-account", - function () - local invite = invites.create_account(); + function (_, data) + local invite = invites.create_account(nil, { + source = data.from + }); --TODO: check errors return { status = "completed";