Idle(): Difference between revisions

From TinyMUX
Jump to navigation Jump to search
(New page: Category:Functions FUNCTION: {{Function|idle(<player|port>)}} Returns the number of seconds that <player|port> has been idle. If <player|port> is not [[CONNECTED|connect...)
 
(No difference)

Latest revision as of 11:22, 29 November 2010


FUNCTION: idle(<player

Returns the number of seconds that <player|port> has been idle. If <player|port> is not connected 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 smallest idle time is returned.

Example

   > WHO
   Player Name          On For Idle  Doing
   Wizard                00:04   1m
   Mortal                00:11   0s
   Evinar                00:12   6m
   3 Players logged in.
   > say idle(wiz)
   You say, "6"
   > say idle(e)
   You say, "371"
   > say idle(frobozz)
   You say, "-1"

Related Topics

WHO, conn(), lwho()