I found this code in a different post
 on !@*:JOIN:#teenconnection: {  if (*bad* iswm $nick) ban -ku60 $chan $nick 5 Bad word in nickname
  elseif (*somethingelse* iswm $nick) ban -ku60 $chan $nick 5 Bad word in nickname}

That works for me but is there a way that you can put the words in a file and call it? Also what if they are already in the room? Can you do a scan of the nicknames and kick them if it finds one of the words from the file in their nick? Thanks