to know if there is an exact string in that file, I wouldn't loop through each line.
Perhaps this alias can be handy:
alias isinfile filter -ff test.txt nul $$1 | return $filtered
I'm assuming here that test.txt is a file located in the main mIRC folder, and that each line represents 1 nick.
Greets @Coolkill and The Game