mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Fix get_clean_property in NTSL
This commit is contained in:
@@ -80,9 +80,9 @@ GLOBAL_LIST_EMPTY(ntsl_methods)
|
||||
|
||||
/datum/n_struct/proc/get_clean_property(name, compare)
|
||||
var/x = properties[name]
|
||||
if(istext(x) && compare && x != compare) // Was changed
|
||||
if(istext(x))
|
||||
x = sanitize(x)
|
||||
if(isnotpretty(x)) // Pretty filter stuff
|
||||
if(compare && x != compare && isnotpretty(x)) // Pretty filter stuff
|
||||
var/log_message = "An NTSL script just tripped the pretty filter, setting variable [name] from [compare] to value [x]!"
|
||||
message_admins(log_message)
|
||||
log_ntsl(log_message)
|
||||
|
||||
Reference in New Issue
Block a user