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