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";