feat(cmd/mode): mode exec is seem good (not send message to client yet but debug msg
This commit is contained in:
parent
8d53681c19
commit
46e4f86c16
4 changed files with 133 additions and 8 deletions
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/05/20 22:43:24 by rparodi #+# #+# */
|
||||
/* Updated: 2025/05/26 22:55:45 by rparodi ### ########.fr */
|
||||
/* Updated: 2025/06/17 17:22:09 by rparodi ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -58,6 +58,51 @@ std::list<User *> Channel::getOperators() const {
|
|||
return this->_operators;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the password of the channel
|
||||
*
|
||||
* @return string with the password
|
||||
*/
|
||||
std::string Channel::getPassword() const {
|
||||
return this->_password;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the max user allowd to be in the channel
|
||||
*
|
||||
* @return size_t max user
|
||||
*/
|
||||
size_t Channel::getMaxUsers() const {
|
||||
return this->_maxUsers;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get if an invitation is needed for this channel
|
||||
*
|
||||
* @return the boolean to check if an invite is needed for the channel
|
||||
*/
|
||||
bool Channel::getNeedInvite() const {
|
||||
return this->_needInvite;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Setter got the NeedInvite channel
|
||||
*
|
||||
* @param toSet The new value for need Invite
|
||||
*/
|
||||
void Channel::setNeedInvite(bool toSet) {
|
||||
this->_needInvite = toSet;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Setter for the Max User for the channel
|
||||
*
|
||||
* @param arg the new number (integer / long)
|
||||
*/
|
||||
void Channel::setMaxUser(size_t arg) {
|
||||
this->_maxUsers = arg;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get the list of the Invited in the channel
|
||||
*
|
||||
|
|
@ -106,6 +151,15 @@ void Channel::setTopic(const std::string &topic) {
|
|||
this->_topic = topic;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Setter for the Channel's password
|
||||
*
|
||||
* @param newPass the new password to set
|
||||
*/
|
||||
void Channel::setPassword(const std::string &newPass) {
|
||||
this->_password = newPass;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Setter to set a new operator in the channel
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue