Lcmds(): Difference between revisions
Jump to navigation
Jump to search
Ihavenomouth (talk | contribs) New page: Category:Functions {{Function|lcmds(<object> [,<output delim> [,<type>]])}} Returns the names of all the commands on a specific <object>. The default output delimiter is a space. T... |
(No difference)
|
Latest revision as of 09:10, 28 November 2010
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 *"