Kick command added
This commit is contained in:
@@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* Server.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: iherman- <iherman-@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/06 17:19:12 by iherman- #+# #+# */
|
||||
/* Updated: 2026/05/23 21:31:06 by iherman- ### ########.fr */
|
||||
/* Updated: 2026/05/25 09:46:07 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -120,7 +120,8 @@ Server::Server(int port, const std::string& password) :
|
||||
commands_["PRIVMSG"] = &Server::privmsg_cmd;
|
||||
commands_["MODE"] = & Server::mode_cmd;
|
||||
commands_["INVITE"] = &Server::invite_cmd;
|
||||
|
||||
commands_["KICK"] = &Server::kick_cmd;
|
||||
|
||||
std::cout << "Server port: " << port_
|
||||
<< "\nServer Password: " << password_
|
||||
<< std::endl;
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
/* ::: :::::::: */
|
||||
/* Server.hpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: iherman- <iherman-@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2026/05/06 17:18:11 by iherman- #+# #+# */
|
||||
/* Updated: 2026/05/23 21:29:13 by iherman- ### ########.fr */
|
||||
/* Updated: 2026/05/25 09:46:21 by aortigos ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -69,6 +69,7 @@ class Server
|
||||
void quit_cmd(User &client, std::istringstream &ss);
|
||||
void mode_cmd(User &client, std::istringstream &ss);
|
||||
void invite_cmd(User &client, std::istringstream &ss);
|
||||
void kick_cmd(User &client, std::istringstream &ss);
|
||||
|
||||
public:
|
||||
Server();
|
||||
|
||||
Reference in New Issue
Block a user