@RusselB: Not sure what you mean - both of those mean the same, to me at least. If full or partial of the nick is in the file (hence marked as a bad nick), it must be changed via SVSNICK - much like how a swear protection script would work, only we're using 'on NICK/JOIN' events instead of an 'on TEXT' event.
@Tomao: I don't want to have the words in the script as there will be many words; I want to add them to a seperate file.
Something like this would work perfectly, only I don't know how to correctly use the $read identifier to do a correct wildcard search.http://www.paste.mircscripting.info/index.php?id=2989
If I used something like '$read(txt\badnicks.txt,w,* $+ $nick $+ *)', a users nick would only be changed if their entire nick was in the file, with optional characters before or after the actual nick. For example:
xXxDickheadxXx has joined #chat
..and say in badnicks.txt we have 'dick' on one line... their nick wouldn't change unless their nick was something like: xXxDickxXx, DickXXX, xXx1337dick (because 'head' is not in any of these nicks).