TinyMUX

Idle()

Functions

FUNCTION: idle(<player|port>)

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"

WHO, conn(), lwho()

Aliases: idlesecs