Cmds()

From TinyMUX
Revision as of 11:36, 27 November 2010 by Ihavenomouth (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


cmds(<player>)

Returns the number of commands entered by a connected <player|port>. If <player|port> is not connected or the enactor has insufficient permissions, then -1 is returned.

If <player|port> is numeric, it's taken as a port number (as shown in SESSION). Otherwise, it's treated as a player name. If the named player is connected more than once, the first connection is returned.

Example

> say cmds(me)

You say, "100"


> say cmds(me)

You say, "101"