mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-30 03:52:52 +00:00
Removes the ability to disable NTNet wireless. (#10923)
This commit is contained in:
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user