Removes the ability to disable NTNet wireless. (#10923)

This commit is contained in:
Werner
2021-01-07 00:16:06 +01:00
committed by GitHub
parent 4e8d120ab4
commit 9356803493
3 changed files with 61 additions and 45 deletions

View File

@@ -9,7 +9,7 @@
required_access_download = access_heads
usage_flags = PROGRAM_CONSOLE | PROGRAM_SILICON_AI
color = LIGHT_COLOR_GREEN
available_on_ntnet = TRUE
nanomodule_path = /datum/nano_module/computer_ntnetmonitor
@@ -59,24 +59,6 @@
if(ntnet_global)
ntnet_global.toggleIDS()
return TRUE
if(href_list["toggleWireless"])
. = TRUE
if(!ntnet_global)
return TRUE
// NTNet is disabled. Enabling can be done without user prompt
if(ntnet_global.setting_disabled)
ntnet_global.setting_disabled = FALSE
return TRUE
// NTNet is enabled and user is about to shut it down. Let's ask them if they really want to do it, as wirelessly connected computers won't connect without NTNet being enabled (which may prevent people from turning it back on)
var/mob/user = usr
if(!user)
return TRUE
var/response = alert(user, "Really disable NTNet wireless? If your computer is connected wirelessly you won't be able to turn it back on! This will affect all connected wireless devices.", "NTNet shutdown", "Yes", "No")
if(response == "Yes")
ntnet_global.setting_disabled = TRUE
return TRUE
if(href_list["purgelogs"])
. = TRUE
if(ntnet_global)
@@ -91,4 +73,4 @@
. = TRUE
if(!ntnet_global)
return TRUE
ntnet_global.toggle_function(href_list["toggle_function"])
ntnet_global.toggle_function(href_list["toggle_function"])