ADD commands NICK, USER, PASS, CAP

This commit is contained in:
Samy BEN TAYEB 2025-06-08 22:27:08 +02:00
parent 8a77409158
commit 57aa57d9eb
14 changed files with 224 additions and 50 deletions

21
include/commands/cap.hpp Normal file
View file

@ -0,0 +1,21 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cap.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/06/08 22:08:44 by sben-tay #+# #+# */
/* Updated: 2025/06/08 22:16:14 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include "commands.hpp"
class cmd::Cap : public ACommand {
public:
Cap(User *user, Channel *channel, Server *server, const std::string &line) : ACommand(user, channel, server, line) {}
virtual void execute();
};

View file

@ -3,10 +3,10 @@
/* ::: :::::::: */
/* nick.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/24 17:17:31 by rparodi #+# #+# */
/* Updated: 2025/06/02 00:40:18 by rparodi ### ########.fr */
/* Updated: 2025/06/08 22:13:30 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
@ -18,5 +18,5 @@ class cmd::Nick : public ACommand {
public:
Nick(User *user, Channel *channel, Server *server, const std::string &line) : ACommand(user, channel, server, line) {}
virtual void execute(void);
virtual e_code checkArgs();
virtual e_code checkArgs(void);
};

View file

@ -0,0 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* userCmd.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/06/08 19:19:47 by sben-tay #+# #+# */
/* Updated: 2025/06/08 22:02:24 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
#pragma once
#include "commands.hpp"
class cmd::userCmd : public ACommand {
public:
userCmd(User *user, Channel *channel, Server *server, const std::string &line) : ACommand(user, channel, server, line) {}
virtual void execute();
virtual e_code checkArgs();
};