on *:OPEN:?:*:{
set -u3 $+(%,notify.,$cid,.,$nick) 1
.notify $nick !query!notify!
}
on *:CLOSE:?:{
set -u3 $+(%,notify.,$cid,.,$nick) 1
.notify -r $nick
}
on *:NOTIFY:{
if ($($+(%,notify.,$cid,.,$nick),2)) return
if ($query($nick)) echo $color(join) -t $nick *** $nick has joined IRC
}
on *:UNOTIFY:{
if ($($+(%,notify.,$cid,.,$nick),2)) return
if ($query($nick)) echo $color(quit) -t $nick *** $nick has quit IRC
}