Conn()

From TinyMUX
Jump to navigation Jump to search


FUNCTION: conn(<player

Returns the number of seconds that <player|port> has been connected. 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 longest connect time is returned.

Example

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

Related Topics

WHO, idle(), lwho()