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; }
|
||||
|
||||
@@ -53,13 +53,12 @@ class Channel
|
||||
void removeOperator(int fd);
|
||||
bool hasOperator(int fd) const;
|
||||
|
||||
void inviteMember(User& client); // not implemented
|
||||
|
||||
void broadcast(const std::string &msg, const std::map<int, User> &clients, int excludedFd);
|
||||
|
||||
// modes
|
||||
void setMode(std::string& mode, std::string& args);
|
||||
|
||||
void inviteMember(const User& client); // not implemented
|
||||
bool isInviteOnly() const;
|
||||
bool isInvited(int fd) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user