I'd like to have a script that checks to see if someone that sends me a private message is on a list of prepared nicks I have, this is what I have so far.

In Remotes:

on 1:NOTICE:*:?:/awaycheck

In Aliases:

awaycheck {
//echo $read(whtlist.txt, s, $nick) | if ( $readn > 0 ) { /echo user is on list }
}

that's assuming that "whtlist.txt" is in the root Mirc directory.

for some reason I cannot get an echo message