compile, need fixed registered for send code 001 welcome when USER NICK and PASS commands done.

This commit is contained in:
Samy Ben Tayeb 2025-06-12 18:08:35 +02:00
parent c9c0cf314c
commit 479fc3c6c5
16 changed files with 68 additions and 51 deletions

View file

@ -6,7 +6,7 @@
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/24 17:29:48 by rparodi #+# #+# */
/* Updated: 2025/06/10 16:27:03 by rparodi ### ########.fr */
/* Updated: 2025/06/12 17:52:35 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
@ -30,7 +30,7 @@ e_code Pass::checkArgs() {
*/
void Pass::execute() {
if (checkArgs() == _PARSING_OK) {
if (checkArgs() != _PARSING_OK) {
ERROR_MSG("Invalid arguments for Pass command (see warning message)");
DEBUG_MSG("skill issues");
return;
@ -41,4 +41,5 @@ void Pass::execute() {
return;
}
_sender->setHasPass(true);
_sender->checkRegistration();
}