You could just use var %x $nick($1,0) while (%i) { notice $nick($1,%i) Sorry for spamming, i will excess flood soon.. $2-