join cmd and channel fixes

This commit is contained in:
aortigos
2026-05-17 13:44:55 +02:00
parent 619b0360b2
commit fba8c95097
3 changed files with 46 additions and 5 deletions

View File

@@ -47,6 +47,11 @@ Channel::Channel(std::string &name) : name_(name) { /* std::cout << "Channel wit
// Getters
std::string Channel::getName() const { return (this->name_); }
const std::set<int> &Channel::getMembers() const
{
return (members_);
}
// Members
void Channel::addMember(int fd) { this->members_.insert(fd); }
void Channel::removeMember(int fd) { this->members_.erase(fd); }

View File

@@ -37,6 +37,7 @@ class Channel
// Getters
std::string getName() const;
const std::set<int> &getMembers() const;
// Users