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/05/24 17:29:48 by rparodi #+# #+# */
|
||||
/* Updated: 2025/06/12 13:24:35 by sben-tay ### ########.fr */
|
||||
/* Updated: 2025/06/18 12:56:37 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -18,7 +18,8 @@ using namespace cmd;
|
|||
|
||||
e_code Notice::checkArgs() {
|
||||
if (_args.size() < 3) {
|
||||
WARNING_MSG("Not enough arguments for NOTICE command");
|
||||
std::string msg461 = ":localhost 461 " + this->_sender->getNickname() + " " + this->_command + " :Not enough parameters\r\n";
|
||||
this->_sender->appendToWriteBuffer(msg461);
|
||||
return ERR_NEEDMOREPARAMS;
|
||||
}
|
||||
if (_args.at(1).at(0) != '#') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue