Minor tweaks & Remove NTSLv1

This commit is contained in:
tigercat2000
2018-06-21 21:20:28 -07:00
parent 24506bd28e
commit c028ea2c7b
28 changed files with 68 additions and 3839 deletions
+1 -1
View File
@@ -721,7 +721,7 @@ var/list/admin_verbs_ticket = list(
var/list/Lines = file2list("config/admins.txt")
for(var/line in Lines)
var/list/splitline = splittext(line, " - ")
if(n_lower(splitline[1]) == ckey)
if(lowertext(splitline[1]) == ckey)
if(splitline.len >= 2)
rank = ckeyEx(splitline[2])
break
+7 -10
View File
@@ -886,23 +886,20 @@ Traitors and the like can also be revived with the previous role mostly intact.
/client/proc/reset_all_tcs()
set category = "Admin"
set name = "Reset Telecomms Scripts"
set desc = "Blanks all telecomms scripts from all telecomms servers"
set name = "Reset NTSL2 Configuration"
set desc = "Resets NTSL2 to the default configuration."
if(!check_rights(R_ADMIN))
return
var/confirm = alert(src, "You sure you want to blank all NTSL scripts?", "Confirm", "Yes", "No")
var/confirm = alert(src, "You sure you want to reset NTSL2?", "Confirm", "Yes", "No")
if(confirm != "Yes")
return
for(var/obj/machinery/telecomms/server/S in telecomms_list)
var/datum/TCS_Compiler/C = S.Compiler
S.rawcode = ""
C.Compile("")
log_admin("[key_name(usr)] blanked all telecomms scripts.")
message_admins("[key_name_admin(usr)] blanked all telecomms scripts.")
feedback_add_details("admin_verb","RAT") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
GLOB.ntsl2_config.reset()
log_admin("[key_name(usr)] reset NTSL2 scripts.")
message_admins("[key_name_admin(usr)] reset NTSL2 scripts.")
feedback_add_details("admin_verb","RAT2") //If you are copy-pasting this, ensure the 2nd parameter is unique to the new proc!
/client/proc/list_ssds()
set category = "Admin"