Welcome

User: Pass:   register


/*

$joined()

Usage: $joined(#channel)

Explanation: returns the number of seconds you've been on #channel.

Author: hixxy

*/

alias joined { return $calc($ctime - $hget(joined $+ $cid,$1)) }

on *:disconnect:{
  if ($hget(joined $+ $cid)) { hfree $v1 }
}
on me:*:join:#:{ hadd -m joined $+ $cid $chan $ctime }
on me:*:part:#:{
  if ($hget(joined $+ $cid,$chan)) { hdel joined $+ $cid $chan }
}






© 1996-2010 hdesk.org and dalnethelpdesk.com