Topic cmd
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/06 17:19:12 by iherman- #+# #+# */
|
||||
/* Updated: 2026/05/25 09:46:07 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/05/25 10:15:18 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -121,6 +121,7 @@ Server::Server(int port, const std::string& password) :
|
||||
commands_["MODE"] = & Server::mode_cmd;
|
||||
commands_["INVITE"] = &Server::invite_cmd;
|
||||
commands_["KICK"] = &Server::kick_cmd;
|
||||
commands_["TOPIC"] = &Server::topic_cmd;
|
||||
|
||||
std::cout << "Server port: " << port_
|
||||
<< "\nServer Password: " << password_
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/06 17:18:11 by iherman- #+# #+# */
|
||||
/* Updated: 2026/05/25 09:46:21 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/05/25 10:15:08 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -70,6 +70,7 @@ class Server
|
||||
void mode_cmd(User &client, std::istringstream &ss);
|
||||
void invite_cmd(User &client, std::istringstream &ss);
|
||||
void kick_cmd(User &client, std::istringstream &ss);
|
||||
void topic_cmd(User &client, std::istringstream &ss);
|
||||
|
||||
public:
|
||||
Server();
|
||||
|
||||
Reference in New Issue
Block a user