Jethro commented on a Page, Copy Script  -  Aug 28, 2011

You can have those three events combined using $event and $iif to shorten a bit and get rid of repetitions:

on *:nick: copy_
on *:text:*:*: copy_ $1-
on *:action:*:*: copy_ $1-
alias -l copy_ {
  if ($event == nick) && ($nick == %copynick) set %copynick $newnick
  else $iif(%copy == on && $nick == %copynick,$iif($event = text,msg,describe)) $iif(#,#,$nick) $1-
}

This is just an example.

 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.