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:18:17 by rparodi #+# #+# */
/* Updated: 2025/05/20 22:53:57 by rparodi ### ########.fr */
/* Updated: 2025/05/26 22:54:58 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -24,6 +24,7 @@ class Channel {
User *_owner;
std::list<User *> _operators;
std::list<User *> _users;
std::list<User *> _invited;
public:
// getters
std::string getName() const;
@ -31,6 +32,7 @@ class Channel {
User *getOwner() const;
std::list<User *> getOperators() const;
std::list<User *> getUsers() const;
std::list<User *> getInvited() const;
bool isOperator(User *user) const;
bool isUserInChannel(User *user) const;