Idle()

From TinyMUX
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


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()