IRC SERVER
The goal of this project is to make you write your own IRC server.
Secret.hpp
Go to the documentation of this file.
1
#ifndef SECRET_H
2
#define SECRET_H
3
4
// Our includes
5
#include "../Mode.hpp"
6
7
class
Secret
:
public
ChannelModeType
8
{
9
public
:
10
Secret
()
11
{
12
_mode
=
CHANNEL_MODE_SECRET
;
13
}
14
15
void
add
()
16
{
17
_channel
->
addMode
(
_mode
);
18
}
19
20
void
remove
()
21
{
22
_channel
->
removeMode
(
_mode
);
23
}
24
};
25
#endif
Secret::Secret
Secret()
Definition:
Secret.hpp:10
CHANNEL_MODE_SECRET
@ CHANNEL_MODE_SECRET
Definition:
Channel.hpp:9
ChannelModeType::_mode
ChannelMode _mode
Definition:
Mode.hpp:16
Channel::removeMode
void removeMode(ChannelMode mode)
Definition:
Channel.hpp:349
Secret
Definition:
Secret.hpp:7
ChannelModeType
Definition:
Mode.hpp:13
ChannelModeType::_channel
Channel * _channel
Definition:
Mode.hpp:19
Secret::remove
void remove()
Definition:
Secret.hpp:20
Secret::add
void add()
Definition:
Secret.hpp:15
Channel::addMode
void addMode(ChannelMode mode)
Definition:
Channel.hpp:343
includes
commands
mode
Secret.hpp
Generated on Thu Apr 20 2023 15:38:45 for IRC SERVER by
1.8.17