-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathircMimic.hpp
53 lines (36 loc) · 1.07 KB
/
ircMimic.hpp
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
46
47
48
49
50
51
52
53
#ifndef IRC_MIMIC_HPP
#define IRC_MIMIC_HPP
#include <map>
#include "serverMessageStruct.hpp"
class Bot;
//Includes demimic
class ircMimic
{
public:
ircMimic(Bot*);
/*Core functions*/
void mimic();
void demimic();
void mimic_handler();
bool mimicing();
//void mimic_description();
//void demimic_description();
void mim_mods_reset(); //resets mimic modifiers to 0
void demim_mods_reset(); //resets demimic modifiers to 0
//bool demim_check_conf_mods(); //checks if any demimic modifies conflict
private:
std::string pig_latin(std::string);
Bot* bot;
serverMsgStruct s_msg_struct;
msgStruct msg_struct;
//Flags mimic
struct user_flags
{
int pig_lat = 0; //pig latin
}user_f;
//Flags demimic
int demim_all = 0;
std::vector<std::string> nicknames_mimic; //nicknames that are being mimiced
std::map<std::string,user_flags> nickname_map;
};
#endif // IRC_MIMIC_HPP