Cmds()

From TinyMUX
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"