on ^!*:join:#:{
if %join.clone.scan == on {
var %x_match = ( $+ $ialchan($address($nick,2),#,0) clone $+ $iif($ialchan($address($nick,2),#,0) > 1,s) $+ :
var %x = $ialchan($address($nick,2),#,0) , %nicks
if (%x > 1) {
while (%x) { %nicks = %nicks $ialchan($address($nick,2),#,%x).nick | dec %x }
}
%xnicks = %nicks $+ )
echo $colour(join) -lt $target * $nick ( $+ $remove($address($nick,5),$nick,!) $+ ) has joined # %x_match $iif( $ialchan($address($nick,2),#,0) > 1 , %xnicks )
haltdef
}
}