Added working INVITE command

This commit is contained in:
iherman-
2026-05-23 21:38:02 +02:00
parent dd4de38e5f
commit bed4006e90
7 changed files with 86 additions and 10 deletions

View File

@@ -6,7 +6,7 @@
/* By: iherman- <iherman-@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/05/06 17:19:12 by iherman- #+# #+# */
/* Updated: 2026/05/23 18:03:11 by iherman- ### ########.fr */
/* Updated: 2026/05/23 21:31:06 by iherman- ### ########.fr */
/* */
/* ************************************************************************** */
@@ -119,6 +119,7 @@ Server::Server(int port, const std::string& password) :
commands_["QUIT"] = &Server::quit_cmd;
commands_["PRIVMSG"] = &Server::privmsg_cmd;
commands_["MODE"] = & Server::mode_cmd;
commands_["INVITE"] = &Server::invite_cmd;
std::cout << "Server port: " << port_
<< "\nServer Password: " << password_

View File

@@ -6,7 +6,7 @@
/* By: iherman- <iherman-@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/05/06 17:18:11 by iherman- #+# #+# */
/* Updated: 2026/05/23 17:16:21 by iherman- ### ########.fr */
/* Updated: 2026/05/23 21:29:13 by iherman- ### ########.fr */
/* */
/* ************************************************************************** */
@@ -68,7 +68,7 @@ class Server
void privmsg_cmd(User &client, std::istringstream &ss);
void quit_cmd(User &client, std::istringstream &ss);
void mode_cmd(User &client, std::istringstream &ss);
void invite_cmd(User &client, std::istringstream &ss);
public:
Server();