Channel changes and init JOIN command
This commit is contained in:
@@ -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_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user