/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* part.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: aortigos > args; if (!clients[fd].isRegistered()) { std::string msg = "You are not registered\r\n"; send(fd, msg.c_str(), msg.size(), 0); return ; } if (channels.find(args) != channels.end() && channels[args].isMember(fd)) { channels[args].removeMember(fd); std::string msg = "You left the channel\r\n"; send(fd, msg.c_str(), msg.size(), 0); } else { std::string msg = "You dont belong to this channel\r\n"; send(fd, msg.c_str(), msg.size(), 0); } }