style(global): removing all the std::cout

This commit is contained in:
Samy Ben Tayeb 2025-06-24 14:42:37 +02:00
parent 4b900fc600
commit b5bb9a6503
3 changed files with 5 additions and 7 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/24 14:35:17 by sben-tay ### ########.fr */
/* Updated: 2025/06/24 14:40:17 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
@ -89,7 +89,6 @@ void Kick::execute() {
}
msgKick += "\r\n";
std::cout << " msgKick: " << msgKick << "msgPart: " << msgPart << std::endl;
_uTarget->appendToWriteBuffer(msgPart);
_cTarget->sendAllClientInAChannel(msgKick);

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/24 14:02:33 by sben-tay ### ########.fr */
/* Updated: 2025/06/24 14:40:03 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
@ -88,7 +88,6 @@ void PrivMsg::execute() {
msgEmote += ":bot!ircbot@localhost PRIVMSG " + target + " :💐💑💒💓💔💕💖💗💘💙💚💛💜💝💞💟\r\n";
msgEmote += ":bot!ircbot@localhost PRIVMSG " + target + " :💠💡💢💣💤💥💦💧💨💩💪💫💬💭💯🤨\r\n";
std::cout << "target = " << target << std::endl;
// Envoi vers un channel
if (target[0] == '#') {
target.erase(0, 1);

View file

@ -6,7 +6,7 @@
/* By: sben-tay <sben-tay@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/13 11:11:07 by rparodi #+# #+# */
/* Updated: 2025/06/23 16:18:12 by sben-tay ### ########.fr */
/* Updated: 2025/06/24 14:41:14 by sben-tay ### ########.fr */
/* */
/* ************************************************************************** */
@ -43,7 +43,7 @@ void handle_sigint(int sig) {
*/
Server::Server(int port, const std::string &password) : _port(port), _password(password)
{
std::cout << CLR_GREY << "Info: Server constructor called" << CLR_RESET << std::endl;
INFO_MSG("Info: Server constructor called");
}
/**
@ -51,7 +51,7 @@ Server::Server(int port, const std::string &password) : _port(port), _password(p
*/
Server::~Server()
{
std::cout << CLR_GREY << "Info: Server destructor called" << CLR_RESET << std::endl;
INFO_MSG("Info: Server destructor called");
if (_serverFd != -1) {
close(_serverFd);
}