Starting Channel class

This commit is contained in:
aortigos
2026-04-17 18:43:52 +02:00
parent c84178c9bc
commit 4faa83eb89
7 changed files with 148 additions and 7 deletions

35
commands/join.cpp Normal file
View File

@@ -0,0 +1,35 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* join.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/04/17 16:26:18 by aortigos #+# #+# */
/* Updated: 2026/04/17 18:43:39 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
#include "../Server/Server.hpp"
void Server::cmd_join(int fd, std::istringstream &ss)
{
std::string args;
ss >> args;
if (!clients[fd].isRegistered())
{
std::string msg = "You are not registered";
send(fd, msg.c_str(), msg.size(), 0);
}
if (channels.find(channelName) == channels.end())
{
} else {
}
}