ON *:JOIN:#yourchannelhere:{ var %x 0 | var %file while (%x < $lines($qt(%file))) { inc %x if ($read(%file,%x) == $nick)) { /mode $chan -v $nick } } }