From 9bcffd46b5a379b0d374fdb50355072e8682efbe Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 17 Jun 2025 18:00:40 +0200 Subject: [PATCH] fix(cmd/mode): fixing the compilation of the file --- sources/commands/modes.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sources/commands/modes.cpp b/sources/commands/modes.cpp index 35018b5..eae6a72 100644 --- a/sources/commands/modes.cpp +++ b/sources/commands/modes.cpp @@ -6,7 +6,7 @@ /* By: sben-tay +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/05/24 17:29:48 by rparodi #+# #+# */ -/* Updated: 2025/06/17 17:57:02 by rparodi ### ########.fr */ +/* Updated: 2025/06/17 18:00:26 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -128,10 +128,12 @@ void Mode::execute() { if (this->_mode[i].second.add) { if (this->_cTarget->getNeedInvite() == true) { DEBUG_MSG("Already as invite only"); - } this->_cTarget->setNeedInvite(true); + } + this->_cTarget->setNeedInvite(true); } else if (this->_mode[i].second.remove) { if (this->_cTarget->getNeedInvite() == false) { DEBUG_MSG("Already as not invite only"); + } this->_cTarget->setNeedInvite(false); } break;