Is such code allowed for v2 mod?

Issue Type (Required):

Mods

Issue Description (Required):

So i decompiled one of the mods to check some certain behavior, and there is such a code:

if not Steam.connected() then
while 1 == 1 do
while 1 == 1 do
while 1 == 1 do
while 1 == 1 do
while 1 == 1 do
mod:echo(“Steam not found!”)
end
end
end
end
end
end

slot1 = get_mod(“edited_for_post”)
slot2 = {
“11000010a7be750”,
“1100001046e5bf3”,
“1100001030c44b2”,
“110000104225b4b”,
“110000101ec4ed6”,
“110000105fced04”,
“110000112516be4”,
“1100001040adfe9”,
“1100001034f305d”,
“11000010593901b”,
“1100001044c6697”,
“110000111c14340”,
“110000109717bee”,
“1100001030fd3b2”
}
slot3 = {
“1100001088f1ea0”
}

function ()
slot1 = rawget(_G, “Steam”).user_id()
edited_for_post_test = table.contains(uv0, Steam.user_id()) and true or false

if not slot0 or not slot1 or table.contains(uv1, slot0) and true or table.contains(uv1, slot1) and true or false then
	uv2:echo("EditedForPost wasn't able to run.")
	Application.quit()

	table = nil
	Steam = nil
	Application = nil
	StateIngame = nil
	Network = nil

	return
end

end()

function slot5()
slot0 = Steam.user_id()
slot1 = rawget(_G, “Steam”).user_id()
slot2 = Network and Network.peer_id and Network.peer_id()
slot3 = Managers.mechanism and Managers.mechanism:game_mechanism()
slot4 = slot3 and slot3.get_deus_run_controller and slot3:get_deus_run_controller()
slot5 = slot4 and slot4:get_own_peer_id()
slot6 = Managers.account:user_id()
edited_for_post_test = table.contains(uv0, slot0) and true or false

if not slot0 or not slot1 or not slot2 or not slot6 or slot5 and table.contains(uv1, slot5) and true or table.contains(uv1, slot0) and true or table.contains(uv1, slot1) and true or table.contains(uv1, slot2) and true or table.contains(uv1, slot6) and true or false then
	uv2:echo("EditedForPost wasn't able to run.")
	Application.quit()

	table = nil
	Steam = nil
	Application = nil
	StateIngame = nil
	Network = nil

	return
end

end

So im asking Fatshark, is such malicious code allowed? Why mods have access to Application.Quit() and the rest? Can you restrict API to be safe? And shouldnt be mods and their authors punished for doing such things?

I can guide a staff member though decompile proccess of certain mod if thats required for evidence.

[PC] Do You Use Mods? (Optional):

No, I don’t use mods

Reproduction Rate (Required):

Constant (100%)

Platform (Required):

Steam (PC)

If you do not like the mod simply do not use it. There is no need to bother devs with it.

If I had to guess the mod likely kills the game as a failsafe to prevent any further errors judging from what I’m seeing here, otherwise there might be issues that arise from having a bricked mod loaded.

Not really, this code is killing the game if your steamid matches any of the lists.