This code was meant to replace the condition "&& ($nick != $read(Ti.Cercano.txt, r, $nick))" in the line of your code that starts with:
Code:
if ($me isin $1-) && ($chan !== $active) && ($nick != $read(Ti.Cercano.txt, r, $nick)) { ....

In addition, I assumed you have the nicks-to-exclude in your textfile in the format:
Code:
nick1
anothernick
nick3
...
Is this correct?