tigercat requested changes.

This commit is contained in:
Dedhia
2018-10-07 06:50:50 -07:00
parent 0d1ee8c64f
commit 7ccb5b3ded
3 changed files with 12 additions and 12 deletions
@@ -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