IRC SERVER
The goal of this project is to make you write your own IRC server.
InviteOnly.hpp
Go to the documentation of this file.
1 #ifndef INVITE_ONLY_H
2 #define INVITE_ONLY_H
3 
4 // Our includes
5 #include "../Mode.hpp"
6 
7 class InviteOnly : public ChannelModeType
8 {
9  public:
11  {
13  }
14 
15  bool validate(void)
16  {
17  if (_params.size() < 1)
18  {
20  return false;
21  }
22  return true;
23  }
24 
25  void add()
26  {
28  }
29 
30  void remove()
31  {
33  }
34 };
35 #endif
ChannelModeType::_sender
Client * _sender
Definition: Mode.hpp:21
ChannelModeType::_mode
ChannelMode _mode
Definition: Mode.hpp:16
Client::message
void message(char const *message)
Definition: client.cpp:15
Channel::removeMode
void removeMode(ChannelMode mode)
Definition: Channel.hpp:349
InviteOnly::InviteOnly
InviteOnly()
Definition: InviteOnly.hpp:10
ChannelModeType::_params
std::map< size_t, std::string > _params
Definition: Mode.hpp:20
ChannelModeType
Definition: Mode.hpp:13
InviteOnly::add
void add()
Definition: InviteOnly.hpp:25
InviteOnly
Definition: InviteOnly.hpp:7
ERR_NEEDMOREPARAMS
#define ERR_NEEDMOREPARAMS(servername, nick, command)
Definition: Replies.hpp:131
InviteOnly::validate
bool validate(void)
Definition: InviteOnly.hpp:15
ChannelModeType::_channel
Channel * _channel
Definition: Mode.hpp:19
Client::_nick
std::string _nick
Definition: Client.hpp:26
CHANNEL_MODE_INVITE_ONLY
@ CHANNEL_MODE_INVITE_ONLY
Definition: Channel.hpp:10
Client::_servername
std::string _servername
Definition: Client.hpp:30
Channel::addMode
void addMode(ChannelMode mode)
Definition: Channel.hpp:343
InviteOnly::remove
void remove()
Definition: InviteOnly.hpp:30