This commit is contained in:
2024-02-05 15:42:32 +01:00
parent 91d4faad3a
commit f04bbb8045
2 changed files with 4 additions and 3 deletions

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 10:36:21 by maldavid #+# #+# */ /* Created: 2024/01/21 10:36:21 by maldavid #+# #+# */
/* Updated: 2024/02/05 13:13:54 by vvaas ### ########.fr */ /* Updated: 2024/02/05 14:52:42 by vvaas ### ########.fr */
/* */ /* */
/******************************************************************************/ /******************************************************************************/
@@ -179,7 +179,7 @@ namespace irc
arg_nb++; arg_nb++;
if (flags.find('l') != std::string::npos && modevalue) if (flags.find('l') != std::string::npos && modevalue)
arg_nb++; arg_nb++;
if (msg.getTokens().size() < arg_nb) if (msg.getTokens().size() != arg_nb)
{ {
client->sendCode(ERR_NEEDMOREPARAMS, "MODE : Need more params"); client->sendCode(ERR_NEEDMOREPARAMS, "MODE : Need more params");
return ; return ;

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */ /* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 09:31:17 by maldavid #+# #+# */ /* Created: 2024/01/21 09:31:17 by maldavid #+# #+# */
/* Updated: 2024/02/05 13:32:39 by vvaas ### ########.fr */ /* Updated: 2024/02/05 14:10:19 by vvaas ### ########.fr */
/* */ /* */
/******************************************************************************/ /******************************************************************************/
@@ -102,6 +102,7 @@ namespace irc
++cit; ++cit;
} }
it = _client.erase(it) - 1; it = _client.erase(it) - 1;
} }
} }
} }