Mmucl Procedure

Name

sub - Define a sub or display defined subs.

Synopsis

action pattern ?replacement?

Description

Subs replace a pattern in mud output with a string. Mmucl displays that substituted output. Two arguments define a sub. The first is a regexp pattern which is case sensitive. The second is a string in the form of a regsub subspec. (Consult your tcl docs.) Sub given one argument displays all the subs matching that glob pattern.

Example

sub Dave "That moron Dave"

Text from the mud like "Dave looks at you." will turn into "That moron Dave looks at you."

See Also

highlight, unsub


Home