Language Filter

by Theodis
Replaces selected words with a string of symbols [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Theodis.LanguageFilter##version=1

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Theodis.LanguageFilter##version=1

2250 downloads
Version 1
Date added: Sep 29 2001
Last updated: Jul 29 2009
0 fans
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.