This isn't documented at all but the code is easy to read if you know BYOND. Anyway here's how to use it.
Before you use any of the libraries functions call InitFilter(). This initialized the CurseWords list and loads it up with the words in filter.dat(if you have one). Then to add a word to the list use AddWord() and to remove a word use RemoveWord(). If you want to save the word list use the SaveFilter() proc when the world is closed or whenever you want to save the list. The main proc is the FilterString() proc which goes through the string passed to it and replaces any words which match words in the CurseWords list with random symbols and then returns the resulting string.
Sep 30 2001, 12:00 am