IRC SERVER
The goal of this project is to make you write your own IRC server.
|
Go to the documentation of this file.
5 #include "../Command.hpp"
13 _description =
"Allows the client to query or set the channel topic on "
16 _example[0] =
"TOPIC #channel1 :another topic";
60 std::string topic = channel->
getTopic();
72 std::vector<Client *> related_channels_clients = channel->
getClients();
73 for (
size_t j = 0; j < related_channels_clients.size(); j++)
75 related_channels_clients[j]->message(
Definition: Channel.hpp:26
std::string & getName(void)
Definition: Channel.hpp:82
#define RPL_NOTOPIC(servername, nick, channel)
Definition: Replies.hpp:69
bool isOpe(Client *client)
Definition: Channel.hpp:195
#define ERR_NOSUCHCHANNEL(servername, nick, channel)
Definition: Replies.hpp:107
std::string _description
Definition: Command.hpp:12
std::string & getTopic(void)
Definition: Channel.hpp:87
std::string _name
Definition: Command.hpp:11
@ CHANNEL_MODE_TOPIC_SETTABLE_BY_CHANNEL_OPERATOR_ONLY
Definition: Channel.hpp:12
Definition: Command.hpp:7
std::string getCmd(void) const
Definition: message.cpp:74
void message(char const *message)
Definition: client.cpp:15
bool validate(void)
Definition: Topic.hpp:20
Message * _message
Definition: Command.hpp:21
void execute()
Definition: Topic.hpp:53
#define ERR_CHANOPRIVSNEEDED(servername, nick, channel)
Definition: Replies.hpp:154
#define ERR_NEEDMOREPARAMS(servername, nick, command)
Definition: Replies.hpp:131
std::map< size_t, std::string > _example
Definition: Command.hpp:16
Topic()
Definition: Topic.hpp:10
#define ERR_NOTONCHANNEL(servername, nick, channel)
Definition: Replies.hpp:126
#define RPL_TOPIC(servername, nick, channel, topic)
Definition: Replies.hpp:71
std::vector< Client * > getClients(void) const
Definition: Channel.hpp:172
bool joined(Client *client)
Definition: Channel.hpp:183
std::map< size_t, std::string > getParams(void) const
Definition: message.cpp:79
void setTopic(std::string &topic)
Definition: Channel.hpp:66
Channel * getChannel(std::string &name)
Definition: Server.hpp:202
std::string _usage
Definition: Command.hpp:13
bool hasMode(ChannelMode mode)
Definition: Channel.hpp:337
Client * _sender
Definition: Command.hpp:19
std::string _nick
Definition: Client.hpp:26
std::string _servername
Definition: Client.hpp:30
Server * _server
Definition: Command.hpp:20