Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 5eb4052

Browse files
authored
Fix get_clean_property in NTSL
1 parent 5fe8182 commit 5eb4052

File tree

1 file changed

+2
-2
lines changed
  • yogstation/code/modules/scripting/Interpreter

1 file changed

+2
-2
lines changed

yogstation/code/modules/scripting/Interpreter/Objects.dm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,9 @@ GLOBAL_LIST_EMPTY(ntsl_methods)
8080

8181
/datum/n_struct/proc/get_clean_property(name, compare)
8282
var/x = properties[name]
83-
if(istext(x) && compare && x != compare) // Was changed
83+
if(istext(x))
8484
x = sanitize(x)
85-
if(isnotpretty(x)) // Pretty filter stuff
85+
if(compare && x != compare && isnotpretty(x)) // Pretty filter stuff
8686
var/log_message = "An NTSL script just tripped the pretty filter, setting variable [name] from [compare] to value [x]!"
8787
message_admins(log_message)
8888
log_ntsl(log_message)

0 commit comments

Comments
 (0)