Much similar to my $disconnected snippet and almost the exact opposite of hixxy's $joined snippet. Thanks for the idea. $parted(#channel)
; $parted
; RubixCube
; $parted(#channel)
; Don't rip. Thanks
on me:*:PART:#:hadd -m parted $+(server,.,$cid,.,$chan) $ctime
on me:*:JOIN:#:{
if ($hget(parted,$+(server,.,$cid,.,$chan))) {
hdel parted $+(server,.,$cid,.,$chan)
}
}
alias parted {
if ($1 && $isid) {
if ($($hget(parted,$+(server,.,$cid,.,$1)),2)) {
return $calc($ctime - $v1)
}
else { return $false }
}
}