%sn = 2 while ( $nick($chan($active),%sn,a) != $null ) { [color:green]; Put it into here..[/color] [color:brown]if $istok(blahblah...) { did -a blabla inc %sn | continue }[/color] ; rest of code....