Channel changes and init JOIN command

This commit is contained in:
2026-05-15 15:35:58 +02:00
parent b1f2d3ad1f
commit 2b44730e1a
5 changed files with 81 additions and 34 deletions

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 12:47:58 by aortigos ### ########.fr */
/* Updated: 2026/05/15 15:29:59 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -23,8 +23,10 @@
# include <map>
# include <cctype>
# include <sstream>
# include "../User/User.hpp"
# include "../Channel/Channel.hpp"
# define SERVER_NAME "irc.server"
@@ -40,8 +42,9 @@ class Server
std::string password_;
std::vector<struct pollfd> sockets_;
std::map<int, User> clients_;
std::vector<struct pollfd> sockets_;
std::map<int, User> clients_;
std::map<std::string, Channel> channels_;
std::map<std::string, void (Server::*)(User&, std::istringstream&)> commands_;