-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchannel.hpp
More file actions
56 lines (49 loc) · 1.93 KB
/
channel.hpp
File metadata and controls
56 lines (49 loc) · 1.93 KB
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
54
55
56
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* channel.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mlahlafi <mlahlafi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/14 10:44:15 by osabir #+# #+# */
/* Updated: 2024/10/03 20:10:48 by mlahlafi ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include "client.hpp"
typedef struct t_channel
{
std::vector<int> ClientInvit;
std::map<std::string, std::pair<client*, bool>,CaseInsensitiveCompare> clientMap;
std::string channelname;
std::string real_name;
std::string channelkey;
std::string mode;
size_t limitclient;
size_t count;
bool limit;
bool invite;
bool topic;
bool topicSet;
long topicCreationTime;
std::string channelTopic;
std::string topicSetter;
std::string topicSetter_username;
bool key;
long creationtime;
void ClearChannel();
void ClearTopic(std::map<std::string, t_channel>::iterator &it);
} channel;
struct nodes
{
std::string flagsarg;
std::string mode;
std::string args;
std::string tmp;
std::string add;
std::string channelarg;
std::string lowChan;
size_t i;
size_t flag;
bool sign;
};