user command has been init

This commit is contained in:
aortigos
2026-05-15 14:24:46 +02:00
parent dd019163e3
commit 99e4e5cdb3
5 changed files with 76 additions and 20 deletions

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/05/06 17:19:12 by iherman- #+# #+# */
/* Updated: 2026/05/14 20:35:49 by aortigos ### ########.fr */
/* Updated: 2026/05/15 12:48:10 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -114,6 +114,7 @@ Server::Server(int port, const std::string& password) :
// Add all new commands to commands_ here
commands_["PASS"] = &Server::pass_cmd;
commands_["NICK"] = &Server::nick_cmd;
commands_["USER"] = &Server::user_cmd;
std::cout << "Server port: " << port_
<< "\nServer Password: " << password_

View File

@@ -6,7 +6,7 @@
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/05/06 17:18:11 by iherman- #+# #+# */
/* Updated: 2026/05/15 11:40:28 by aortigos ### ########.fr */
/* Updated: 2026/05/15 12:47:58 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -58,6 +58,7 @@ class Server
// Commands
void pass_cmd(User &client, std::istringstream &ss);
void nick_cmd(User &client, std::istringstream &ss);
void user_cmd(User &client, std::istringstream &ss);
public: