feat(channel): Adding the invited list to channels class and it getter

This commit is contained in:
Raphael 2025-05-26 22:56:44 +02:00
parent bd0f57a7ef
commit 3db61bb54e
2 changed files with 13 additions and 2 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/05/20 22:43:24 by rparodi #+# #+# */
/* Updated: 2025/05/26 18:10:43 by rparodi ### ########.fr */
/* Updated: 2025/05/26 22:55:45 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -58,6 +58,15 @@ std::list<User *> Channel::getOperators() const {
return this->_operators;
}
/**
* @brief Get the list of the Invited in the channel
*
* @return list of Invited in the channel
*/
std::list<User *> Channel::getInvited() const {
return this->_invited;
}
/**
* @brief Check if the user is an operator
*