summaryrefslogtreecommitdiff
path: root/modules/memoserv/main/ignore.h
blob: 0147cc2be29893723b33cf256edcc5e545efc701 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "modules/memoserv.h"

class IgnoreImpl : public MemoServ::Ignore
{
	friend class IgnoreType;

	MemoServ::MemoInfo *memoinfo = nullptr;
	Anope::string mask;

 public:
	IgnoreImpl(Serialize::TypeBase *type) : MemoServ::Ignore(type) { }
	IgnoreImpl(Serialize::TypeBase *type, Serialize::ID id) : MemoServ::Ignore(type, id) { }
	~IgnoreImpl();

	MemoServ::MemoInfo *GetMemoInfo() override;
	void SetMemoInfo(MemoServ::MemoInfo *) override;

	Anope::string GetMask() override;
	void SetMask(const Anope::string &mask) override;
};