Merge pull request #13 from EniumRaphael/raph
style(cmds): removing the debug msg in commands
This commit is contained in:
commit
99213c9295
2 changed files with 2 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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<std::string> 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<std::string> 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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue