Doing join command
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/15 12:48:10 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/05/15 22:00:02 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -115,6 +115,7 @@ Server::Server(int port, const std::string& password) :
|
||||
commands_["PASS"] = &Server::pass_cmd;
|
||||
commands_["NICK"] = &Server::nick_cmd;
|
||||
commands_["USER"] = &Server::user_cmd;
|
||||
commands_["JOIN"] = &Server::join_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/15 15:29:59 by aortigos ### ########.fr */
|
||||
/* Updated: 2026/05/15 22:00:08 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -62,6 +62,7 @@ class Server
|
||||
void pass_cmd(User &client, std::istringstream &ss);
|
||||
void nick_cmd(User &client, std::istringstream &ss);
|
||||
void user_cmd(User &client, std::istringstream &ss);
|
||||
void join_cmd(User &client, std::istringstream &ss);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user