Starting Channel class
This commit is contained in:
35
commands/join.cpp
Normal file
35
commands/join.cpp
Normal 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 {
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user