fix(cmds): sending the message ERR_NEEDMOREPARAMS (461)
This commit is contained in:
parent
f84492e175
commit
1c0e771dd5
12 changed files with 40 additions and 27 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/14 22:26:07 by sben-tay ### ########.fr */
|
||||
/* Updated: 2025/06/18 12:54:41 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -16,12 +16,12 @@
|
|||
using namespace cmd;
|
||||
|
||||
e_code Cap::checkArgs() {
|
||||
if (_args.size() < 2){
|
||||
if (_args.size() < 2) {
|
||||
std::string msg461 = ":localhost 461 " + this->_sender->getNickname() + " " + this->_command + " :Not enough parameters\r\n";
|
||||
this->_sender->appendToWriteBuffer(msg461);
|
||||
return ERR_NEEDMOREPARAMS;
|
||||
|
||||
_sender->appendToReadBuffer(_command);
|
||||
|
||||
}
|
||||
_sender->appendToReadBuffer(_command);
|
||||
return (_PARSING_OK);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue