diff --git a/sources/commands/kick.cpp b/sources/commands/kick.cpp index 1b1800e..7ff898c 100644 --- a/sources/commands/kick.cpp +++ b/sources/commands/kick.cpp @@ -6,7 +6,7 @@ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); diff --git a/sources/commands/privmsg.cpp b/sources/commands/privmsg.cpp index 6de46aa..0ddba52 100644 --- a/sources/commands/privmsg.cpp +++ b/sources/commands/privmsg.cpp @@ -6,7 +6,7 @@ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); diff --git a/sources/core/Server.cpp b/sources/core/Server.cpp index f8bff12..26bec2b 100644 --- a/sources/core/Server.cpp +++ b/sources/core/Server.cpp @@ -6,7 +6,7 @@ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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); }