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