diff --git a/sources/commands/cap.cpp b/sources/commands/cap.cpp index 71f5073..15c86ca 100644 --- a/sources/commands/cap.cpp +++ b/sources/commands/cap.cpp @@ -6,7 +6,7 @@ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/06/08 22:10:24 by sben-tay #+# #+# */ -/* Updated: 2025/06/08 22:45:35 by rparodi ### ########.fr */ +/* Updated: 2025/06/09 14:05:55 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -20,14 +20,11 @@ e_code Cap::checkArgs() { } void cmd::Cap::execute() { - DEBUG_MSG("coucou"); if (this->checkArgs() != _PARSING_OK) return; - DEBUG_MSG("coucou"); if (_args.size() >= 2 && _args[1] == "LS") { std::string reply = "CAP * LS :\r\n"; _sender->appendToWriteBuffer(reply); DEBUG_MSG("Replied to CAP LS"); } - DEBUG_MSG("coucou"); } diff --git a/sources/commands/commands.cpp b/sources/commands/commands.cpp index 882bf07..c650690 100644 --- a/sources/commands/commands.cpp +++ b/sources/commands/commands.cpp @@ -6,7 +6,7 @@ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/24 16:11:56 by rparodi #+# #+# */ -/* Updated: 2025/06/08 23:26:07 by rparodi ### ########.fr */ +/* Updated: 2025/06/09 14:06:14 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -60,9 +60,7 @@ std::vector cmd::split(std::string &line) { * @param line input line from the user */ void cmd::dispatch(::User *user, Channel *channel, Server *server, std::string &line) { - DEBUG_MSG("in dispatch"); std::vector args = cmd::split(line); - DEBUG_MSG("in dispatch"); if (args.empty()) { DEBUG_MSG("Empty line"); return; @@ -73,7 +71,6 @@ void cmd::dispatch(::User *user, Channel *channel, Server *server, std::string & return; } std::cout << command_name << std::endl; - DEBUG_MSG(command_name); switch (command_name[0]) { case 'c': if (command_name == "cap") {