Changeset

4401:52e1ab99d25e

mod_invites_register: factor group handling into separate module -> mod_invites_groups
author Jonas Schäfer <jonas@wielicki.name>
date Tue, 26 Jan 2021 22:04:43 +0100
parents 4400:869df5a6b0c5
children 4402:85c11eb4331b
files mod_invites_register/mod_invites_register.lua
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/mod_invites_register/mod_invites_register.lua	Tue Jan 26 22:04:23 2021 +0100
+++ b/mod_invites_register/mod_invites_register.lua	Tue Jan 26 22:04:43 2021 +0100
@@ -3,8 +3,6 @@
 local jid_bare = require "util.jid".bare;
 local rostermanager = require "core.rostermanager";
 
-local mod_groups = module:depends("groups_internal");
-
 local require_encryption = module:get_option_boolean("c2s_require_encryption",
 	module:get_option_boolean("require_encryption", false));
 local invite_only = module:get_option_boolean("registration_invite_only", true);
@@ -145,14 +143,6 @@
 		if roles then
 			module:open_store("roles"):set(contact_username, roles);
 		end
-
-		local groups = validated_invite.additional_data.groups;
-		if groups then
-			module:log("Adding to groups...");
-			for _, group in ipairs(groups) do
-				mod_groups.add_member(group, contact_username);
-			end
-		end
 	end
 end);