Kick command added

This commit is contained in:
aortigos
2026-05-25 09:46:45 +02:00
parent dec6930a9a
commit 6b87fe8840
4 changed files with 77 additions and 6 deletions

View File

@@ -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;