ON !^*:JOIN:#CHANNEL,#CHANNEL2: { haltdef }
ON !^*:PART:#CHANNEL,#CHANNEL2: { haltdef }
ON !^*:QUIT: {
var %ch = #CHANNEL,#CHANNEL2
var %t = $chan(0)
if (!%t) { return }
var %i = 1
while (%i <= %t) {
var %c = $chan(%i)
if ($istok(%ch,%c,44)) && ($nick ison %c) { haltdef }
elseif (!$istok(%ch,%c,44)) && ($nick ison %c) { echo -tc quit %c * Quits: $nick ( $+ $iif($address($nick,10),$mid($v1,3-),N/A) $+ ) ( $+ $1- $+ ) }
inc %i
}
}