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