Syntax: #substitute {pattern} {text}
This command changes all incoming strings containing the pattern pattern. The pattern will be replaced by the second argument of the command. If you use wildcards in the pattern the whole string will be replaced. Note that the variables (%0-%9) can also be used in the replacement text.
Remember, JMC does all substitutions before actions. This makes it possible to trigger substituted text.
Example:
#substitute {hits you} {HITS YOU}
Now, when you receive the string "Lesath hits you hard", it will be shown as "Lesath HITS YOU hard"
#substitute {%0 hits you} {EVERYONE HITS YOU}
Now you would see:
"Undead hits you hard" as "EVERYONE HITS YOU hard"
"Dragon hits you hard" as "EVERYONE HITS YOU hard"
See also #antisubstitute:, #unsubs, #presub