#include <ServerTextFilter.h>
Public Member Functions | |
| ServerTextFilter () | |
| virtual | ~ServerTextFilter () |
| void | filterString (LangString &text) |
Protected Member Functions | |
| void | loadFile () |
Protected Attributes | |
| std::list< LangString > | words_ |
| time_t | lastReadTime_ |
Classes | |
| struct | TextPart |
Definition at line 28 of file ServerTextFilter.h.
| ServerTextFilter::ServerTextFilter | ( | ) |
Definition at line 29 of file ServerTextFilter.cpp.
| ServerTextFilter::~ServerTextFilter | ( | ) | [virtual] |
Definition at line 33 of file ServerTextFilter.cpp.
| void ServerTextFilter::filterString | ( | LangString & | text | ) |
Definition at line 37 of file ServerTextFilter.cpp.
References int(), IS_SPACE, loadFile(), ServerTextFilter::TextPart::part, ServerTextFilter::TextPart::pos, LangStringUtil::strcasecmp(), LangStringUtil::strlen(), LangStringUtil::strstr(), and words_.
Referenced by ServerChannelManager::actualSend(), and ServerAddPlayerHandler::filterName().
| void ServerTextFilter::loadFile | ( | ) | [protected] |
Definition at line 151 of file ServerTextFilter.cpp.
References S3D::fileExists(), S3D::fileModTime(), S3D::formatStringBuffer(), FileLines::getLines(), S3D::getSettingsFile(), ScorchedServer::instance(), LANG_STRING, lastReadTime_, FileLines::readFile(), and words_.
Referenced by filterString().
std::list<LangString> ServerTextFilter::words_ [protected] |
time_t ServerTextFilter::lastReadTime_ [protected] |
1.5.3