if ($nick iswm $read(useraccess.txt)) {

That's no good, as $read(file) returns a random line from the text file.

What you want to do is: if ($read(useraccess.txt,nw,$nick)) { ... }

This will check for existance of the nickname in the text file, assuming each line is 1 nickname.


Gone.