Quit, Nick Query notifier

By [DX] on Nov 25, 2008

When user quits from server or change nickname, in case that is query with nick opened, it will echo to user's query window, and show message ^^

Just copy to remote (Alt + R)

on *:QUIT: {
  if ($query(0) > 0) { 
    var %.query.num 1
    while ($query(0) >= %.query.num) {
      if ($nick == $query(%.query.num)) {
        echo -m $nick $timestamp 4* $nick has quit network stating ( $+ $1- $+ )
      }
      inc %.query.num
    }
  } 
}
on *:NICK: {
  if ($query(0) > 0) { 
    var %.query.num 1
    while ($query(0) >= %.query.num) {
      if ($newnick == $query(%.query.num)) {
        echo -m $newnick $timestamp 6* $nick changed their nick to $newnick
      }
      inc %.query.num
    }
  }
}

Comments

Sign in to comment.
darkircu   -  Nov 26, 2008

A little bit shorter.

on *:QUIT: {
  var %.query.num 1
  while ($query(%.query.num)) {
    if ($nick == $v1) { echo -m $nick $timestamp 4* $nick has quit network stating ( $+ $1- $+ ) }
    inc %.query.num
  }
}
on *:NICK: {
  var %.query.num 1
  while ($query(%.query.num)) {
    if ($newnick == $v1) { echo -m $newnick $timestamp 6* $nick changed their nick to $newnick }
    inc %.query.num
  }
}
 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.