mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-19 12:12:43 +01:00
Another take at a new whitelist system (#8887)
* Another take at a new whitelist system * fixes * Fixes usage * Adds python script to reassemble the glorious new whitelist
This commit is contained in:
@@ -1944,13 +1944,7 @@
|
||||
var/client/C = locate(href_list["modify_whitelist"])
|
||||
if(!istype(C))
|
||||
return
|
||||
var/entry = input(usr, "Please enter the path of the whitelist you wish to modify:", "Whitelist target", "") as text|null
|
||||
if(!entry || !ispath(text2path(entry)))
|
||||
return
|
||||
if(href_list["set_value"] == "1")
|
||||
C.add_whitelist(entry)
|
||||
else if(href_list["set_value"] == "0")
|
||||
C.remove_whitelist(entry)
|
||||
usr.client.admin_modify_whitelist((href_list["set_value"] == "1"), ckey(C.ckey))
|
||||
|
||||
/mob/living/proc/can_centcom_reply()
|
||||
return 0
|
||||
|
||||
Reference in New Issue
Block a user