summaryrefslogtreecommitdiff
path: root/plugins/StopSpamPlus/src/settings.h
blob: 7d3e3218cb45d424c2ec21a4a617dd5e6fd7778a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

struct Settings
{
	Settings();

	CMOption<bool> InfTalkProtection, AddPermanent, HandleAuthReq, AnswNotCaseSens, RemTmpAll, HistLog;
	CMOption<wchar_t*> Question, AuthRepl, Answer, Congratulation, AnswSplitString;
	CMOption<char*> DisabledProtoList;
	CMOption<DWORD> MaxQuestCount;

	const wchar_t* getQuestion();
	const wchar_t* getReply();
	const wchar_t* getCongrats();

	bool ProtoDisabled(const char *proto)
	{
		std::string temp(proto); temp += ' ';
		return strstr(DisabledProtoList, temp.c_str()) != nullptr;
	}
};

extern Settings g_sets;