Added working INVITE command
This commit is contained in:
@@ -94,5 +94,10 @@ void Channel::setMode(std::string& mode, std::string& args)
|
||||
(void) args;
|
||||
}
|
||||
|
||||
void Channel::inviteMember(const User& client)
|
||||
{
|
||||
invitedMembers_.insert(client.getFd());
|
||||
}
|
||||
|
||||
bool Channel::isInviteOnly() const { return isInviteOnly_; }
|
||||
bool Channel::isInvited(int fd) const { return invitedMembers_.count(fd) > 0; }
|
||||
|
||||
Reference in New Issue
Block a user