From 1c4f5f1f464d23996b947893446e597ac96830d6 Mon Sep 17 00:00:00 2001 From: Raphael Date: Mon, 23 Jun 2025 14:12:00 +0200 Subject: [PATCH] fix(cmd/mode): fixing the parsing of operator users --- sources/commands/modes.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/commands/modes.cpp b/sources/commands/modes.cpp index 8e46b34..189f122 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/23 12:52:33 by rparodi ### ########.fr */ +/* Updated: 2025/06/23 14:08:52 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -108,7 +108,7 @@ e_code Mode::checkArgs() { this->_sender->appendToWriteBuffer(msg461); return ERR_NEEDMOREPARAMS; } - if (searchList(this->_cTarget->getOperators(), this->_sender->getName()) != NULL) { + if (searchList(this->_cTarget->getOperators(), this->_sender->getName()) == NULL) { WARNING_MSG("You are not an operator in the channel for INVITE command"); return ERR_CHANOPRIVSNEEDED; }