Without the n switch mIRC evaluates the line read - now this code does nothing with the line read but check if there's a match at all. Adding the n switch doesn't hurt (in fact it's a good habit), but it's absence won't make the code fail for nicks that contain a pipe char (or consist of a single pipe char).

Code:
//write -c test.txt $chr(124) | write test.txt abc| | echo -a $iif($read(test.txt,w,|),match) ... $iif($read(test.txt,w,abc|),match)

Last edited by Horstl; 22/02/09 08:54 PM.