Just a script I put together, measures time since the person has lasted joined, a little like service bots do. I will be changing it to hostmark at some point to make it more accurate, feel free to edit it.
«16:34:26» <@Lexxyy> !lastseen Lexxyy
«16:34:26» -Raaawwr- Lexxyy last joined here 9mins 14secs ago.
Obviously you could edit to do if ( $2 == $nick ) $iif($left($1,1) == !,notice $nick,msg $chan) are you looking for yourself?
and stuff like that :)
~Lex
P.S In line 3 I set the $ctime variable as %lastime just cause It makes the $calc less confusing.
on $*:TEXT:/^[!@]lastseen */Si:#:{
if ( %ls. [ $+ [ $chan ] $+ [ $2 ] ] != $null ) {
set %lastime %ls. [ $+ [ $chan ] $+ [ $2 ] ]
$iif($left($1,1) == !,notice $nick,msg $chan) $2 last joined here $duration($calc( $ctime - %lastime )) ago
unset %lastime
}
elseif ( %ls. [ $+ [ $chan ] $+ [ $2 ] ] = $null ) {
$iif($left($1,1) == !,notice $nick,msg $chan) $2 has not been seen in this channel.
} }
on *:join:#:{
set %ls. $+ $chan $+ $nick $ctime
}