develop #46
@@ -12,8 +12,30 @@ GVAR(emptyGroupCleanupPFH) = [
|
|||||||
{
|
{
|
||||||
if (local _x) then {
|
if (local _x) then {
|
||||||
if ((count units _x) == 0) then {
|
if ((count units _x) == 0) then {
|
||||||
|
[
|
||||||
|
LEVEL_INFO,
|
||||||
|
QUOTE(COMPONENT),
|
||||||
|
format["Deleting local empty group %1", groupId _x],
|
||||||
|
[]
|
||||||
|
] call EFUNC(common,log);
|
||||||
deleteGroup _x;
|
deleteGroup _x;
|
||||||
};
|
};
|
||||||
|
} else {
|
||||||
|
if (isServer) then {
|
||||||
|
[
|
||||||
|
LEVEL_INFO,
|
||||||
|
QUOTE(COMPONENT),
|
||||||
|
format["Cannot delete group %1 as owner is %2", groupId _x, owner _x],
|
||||||
|
[]
|
||||||
|
] call EFUNC(common,log);
|
||||||
|
} else {
|
||||||
|
[
|
||||||
|
LEVEL_INFO,
|
||||||
|
QUOTE(COMPONENT),
|
||||||
|
format["Cannot delete group %1 as owner is %2", groupId _x, groupOwner _x],
|
||||||
|
[]
|
||||||
|
] call EFUNC(common,log);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
} forEach allGroups;
|
} forEach allGroups;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user