|
@@ -2240,8 +2240,6 @@ String function cmd_group_join(group_name : String, other_user_name : String):
|
|
|
if (allow_group_modify(current_user_id, group_id)):
|
|
|
other_user_id = get_user_id(other_user_name)
|
|
|
if (other_user_id != ""):
|
|
|
- log("allOutgoing: " + set_to_string(allAssociationDestinations(core, other_user_id, "belongsTo")))
|
|
|
- log("Searching for group ID: " + group_id)
|
|
|
if (bool_not(set_in(allAssociationDestinations(core, other_user_id, "belongsTo"), group_id))):
|
|
|
instantiate_link(core, "belongsTo", "", other_user_id, group_id)
|
|
|
return "Success"!
|
|
@@ -2265,7 +2263,7 @@ String function cmd_group_kick(group_name : String, other_user_name : String):
|
|
|
other_user_id = get_user_id(other_user_name)
|
|
|
if (other_user_id != ""):
|
|
|
Element overlap
|
|
|
- if (set_in(allAssociationDestinations(core, other_user_id, "belongsTo"), group_id)):
|
|
|
+ if (bool_not(set_in(allAssociationDestinations(core, other_user_id, "belongsTo"), group_id))):
|
|
|
overlap = set_overlap(allIncomingAssociationInstances(core, group_id, "belongsTo"), allOutgoingAssociationInstances(core, other_user_id, "belongsTo"))
|
|
|
model_delete_element(core,set_pop(overlap))
|
|
|
|