TinyMUX

Noeval

FlagsTopics

FLAG: NOEVAL

When set on an object, all attributes on that object are treated as literal data: u(), ulocal(), get_eval(), @trigger, did_it() messages, and other evaluation callsites return the raw attribute text without performing function calls, %-substitutions, or escape processing.

This is useful for objects that store player-submitted text (such as job trackers, bulletin boards, or mail systems) where evaluating the content would be a security risk.

The same effect can be applied to individual attributes using the no_eval attribute flag (see ‘help attribute flags3’).

Example:

@set myobj=NOEVAL
&DATA myobj=[delete(me)]
say u(myobj/DATA)
You say "[delete(me)]"

Related Topics: ATTRIBUTE FLAGS, hasflag().