Conn()

From TinyMUX
Revision as of 03:34, 29 November 2010 by Ihavenomouth (talk | contribs) (New page: Category:Functions FUNCTION: {{Function|conn(<player|port>)}} Returns the number of seconds that <player|port> has been connected. If <player|port> is not conn...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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()