mirror of
https://github.com/Squareville/TestEventServer.git
synced 2026-01-06 16:36:47 -06:00
Implement new chat features
This commit is contained in:
@@ -20,17 +20,18 @@ public:
|
||||
dChatFilter(const std::string& filepath, bool dontGenerateDCF);
|
||||
~dChatFilter();
|
||||
|
||||
void ReadWordlistPlaintext(const std::string & filepath);
|
||||
bool ReadWordlistDCF(const std::string & filepath);
|
||||
void ExportWordlistToDCF(const std::string & filepath);
|
||||
bool IsSentenceOkay(const std::string& message, int gmLevel);
|
||||
void ReadWordlistPlaintext(const std::string& filepath);
|
||||
bool ReadWordlistDCF(const std::string& filepath, bool whiteList);
|
||||
void ExportWordlistToDCF(const std::string& filepath);
|
||||
std::vector<std::string> IsSentenceOkay(const std::string& message, int gmLevel, bool whiteList = true);
|
||||
|
||||
private:
|
||||
bool m_DontGenerateDCF;
|
||||
std::vector<size_t> m_Words;
|
||||
std::vector<size_t> m_NoNoWords;
|
||||
std::vector<size_t> m_YesYesWords;
|
||||
std::vector<size_t> m_UserUnapprovedWordCache;
|
||||
|
||||
//Private functions:
|
||||
size_t CalculateHash(const std::string& word);
|
||||
bool IsInWordlist(size_t word);
|
||||
};
|
||||
bool IsInWordlist(size_t word, bool whiteList);
|
||||
};
|
||||
Reference in New Issue
Block a user