feat(cmd/mode): mode exec is seem good (not send message to client yet but debug msg

This commit is contained in:
Raphael 2025-06-17 17:57:30 +02:00
parent 8d53681c19
commit 46e4f86c16
4 changed files with 133 additions and 8 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/26 22:54:58 by rparodi ### ########.fr */
/* Updated: 2025/06/17 17:52:19 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -22,6 +22,8 @@ class Channel {
std::string _password;
std::string _topic;
User *_owner;
bool _needInvite;
size_t _maxUsers;
std::list<User *> _operators;
std::list<User *> _users;
std::list<User *> _invited;
@ -29,15 +31,21 @@ class Channel {
// getters
std::string getName() const;
std::string getTopic() const;
size_t getMaxUsers() const;
User *getOwner() const;
std::list<User *> getOperators() const;
std::list<User *> getUsers() const;
std::list<User *> getInvited() const;
std::string getPassword() const;
bool isOperator(User *user) const;
bool isUserInChannel(User *user) const;
bool getNeedInvite() const;
// setters
void setMaxUser(size_t args);
void setNeedInvite(bool toSet);
void setTopic(const std::string &topic);
void setPassword(const std::string &newPass);
void addOperator(User *user);
void addUser(User *user);
void removeUser(User *user);