var/list/profane = list(file2text('profanity.txt'))//contains Hello&World for now
var/list/realprofane = list()
//this needs to make it start a new word because as the code is right now
//it reads the text file as one big word so if the text file contains
//hello world then i need hello and world to become 2 different words
//by checking to see if there is a space in the text file i should be able to
//find the starting point for the new word, but i'm not sure how to do that
//EXAMPLE CODE THAT WILL NOT WORK OR PROBABLY EVEN COMPILE:
newword = copytext(nonacceptable,nonacceptable)
//^^^ actually needs to make it copy all of the text from the nonacceptable
//were on to the next nonacceptable in the list
Z = "[newword]"
Say(msg as text)
for(var/Y in profane)
for(var/Z in realprofane)
checktext(msg as text)
M<<"Don't use profanity"
First of all I'm going to bed right after I post this. Secondly, what I need this code to do: The text file contains Hello&World, I need the code to make Hello&World become two seperate words because after the profane list reads the text file it makes it all one word. Third, just tell me anything you think I should do.