rodecomp/Source/Contents/ForbiddenWords.h
ragnarok-clanker 4fd6cd3ad7 Maintenance: Resubmission of batch 9115 rebased onto main (it conflicted with 9108's CommonObject.cpp change, which it already contai
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.
2026-11-01 02:10:48 +00:00

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