This commit is contained in:
2024-01-22 21:27:47 +01:00
parent 66fa3f494f
commit 2cda614d92
3 changed files with 12 additions and 9 deletions

View File

@@ -6,7 +6,7 @@
/* By: vvaas <vvaas@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/21 10:35:52 by maldavid #+# #+# */
/* Updated: 2024/01/22 20:43:08 by vvaas ### ########.fr */
/* Updated: 2024/01/22 20:52:52 by vvaas ### ########.fr */
/* */
/******************************************************************************/
@@ -23,7 +23,7 @@ namespace irc
void Client::sendCode(const std::string& code, const std::string &msg)
{
const std::string command = code + " :" + msg;
send(_fd, command, command.size(), 0);
send(_fd, command.c_str(), command.size(), 0);
}
void Client::printUserHeader() const