kick commade done : kick the user from the channel

This commit is contained in:
mochaoui
2024-04-18 15:18:53 -05:00
parent a2cf7bc4c8
commit e1ca1fe9a7
3 changed files with 90 additions and 35 deletions

View File

@@ -52,7 +52,7 @@ class Server {
void setUsernameregular(int fd, const std::string& username);
void createChannel(const std::string& channel, const std::string& nickname, int fd);
void handlePrivateMessage(int senderFd, const std::string& recipient, const std::string& message);
void broadcastMessage(const std::string& channel, const std::string& senderNickname, const std::string& msg);
void broadcastMessage(const std::string& channel, const std::string& senderNickname, const std::string& msg, int fd);
int findUserFd1(const std::string& username);
std::string findUsernameforsending(int fd);
bool isOperator(int fd);