$parted

By RubixCube on Oct 24, 2007

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 }
  }
}

Comments

Sign in to comment.
RubixCube   -  Nov 14, 2007

Ah, sorry. Been away for quite a while. Thanks.

 Respond  
xDaeMoN   -  Oct 24, 2007

You can also use

On me:*:JOIN:#: { 

so you can get rid of this line

if ($nick iswm $me) {

. You can do the same to the On Part event.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.