TinyMUX

Lcmds()

Functions

lcmds(<object> [, <output delim> [,<type>]])

Returns the names of all the commands on a specific <object>. The default output delimiter is a space.

The following <type> are allowed:

     $  : This will list all commands (default).      ^  : This will list all ^-LISTENS.

Example

> &CMD1 me=$command1:@pemit me=blah

Set.

> &CMD2 me=$command #2 *:@pemit me=blah blah

Set.

> &CMD3 me=^* says *:@pemit me=You heard something

Set.

> say lcmds(me)

You say, “command1 command #2 *”

> say lcmds(me,|,$)

You say, “command1|command #2 *”

> say lcmds(me,|,^)

You say, “* says *”

lattrcmds()