blob: c1578e2d0e6edc889cc5f37ec43d18601403002d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
/* +------------------------------------+
* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
* InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
* E-mail:
* <brain@chatspike.net>
* <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
* the file COPYING for details.
*
* --------------------------------------------------
*/
#ifndef __SNOMASKS_H__
#define __SNOMASKS_H__
#include <string>
#include <vector>
#include <map>
#include "configreader.h"
#include "inspircd.h"
typedef std::map<char, std::string> SnoList;
class SnomaskManager : public Extensible
{
private:
InspIRCd* ServerInstance;
SnoList SnoMasks;
void SetupDefaults();
public:
SnomaskManager(InspIRCd* Instance);
~SnomaskManager();
bool EnableSnomask(char letter, const std::string &description);
bool DisableSnomask(char letter);
void WriteToSnoMask(char letter, const std::string &text);
void WriteToSnoMask(char letter, const char* text, ...);
bool IsEnabled(char letter);
};
#endif
|