mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 01:23:41 +01:00
tigercat requested changes.
This commit is contained in:
@@ -40,12 +40,11 @@ var/global/file_uid = 0
|
||||
temp.password = password
|
||||
return temp
|
||||
|
||||
/datum/computer_file/proc/can_access_file(var/mob/user, input_password = "")
|
||||
/datum/computer_file/proc/can_access_file(mob/user, input_password = "")
|
||||
if(!password)
|
||||
return TRUE
|
||||
else if(!input_password)
|
||||
if(!input_password)
|
||||
input_password = sanitize(input(user, "Please enter a password to access file '[filename]':"))
|
||||
if(input_password == password)
|
||||
return TRUE
|
||||
else
|
||||
return FALSE
|
||||
return FALSE
|
||||
Reference in New Issue
Block a user