Batch #9132 by ragnarok-clanker: forced by an admin (2 lower score(s), 13 changed function(s)); checked with 22 compiled unit(s), including every includer of Source/Contents/ForbiddenWords.h, Source/Contents/Party/PartyInvitation.h, Source/File/CommonObject.h, Source/UI/Chat/UIChatRoomTitle.h, Source/UI/Guild/UIGuildWnd.h, Source/UI/Party/UIRegisterPartyWnd.h, Source/UI/Window/UIHomunInfoWnd.h, Source/UI/Window/UIPetInfoWnd.h.
21 lines
500 B
C++
21 lines
500 B
C++
#ifndef RAGNAROK_SOURCE_CONTENTS_FORBIDDENWORDS_H
|
|
#define RAGNAROK_SOURCE_CONTENTS_FORBIDDENWORDS_H
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
struct ForbiddenWords {
|
|
/* 0000 */ std::vector<const char*> words;
|
|
|
|
~ForbiddenWords();
|
|
bool Load(const char* name);
|
|
bool Allows(const char* text) const;
|
|
bool Contains(const char* text) const;
|
|
void Mask(char* text, std::string* value = nullptr) const;
|
|
};
|
|
|
|
static_assert(sizeof(ForbiddenWords) == 0xC);
|
|
|
|
extern ForbiddenWords g_forbiddenWords;
|
|
|
|
#endif
|