make the kick commande work proprely hahaha and handle the respense to understooddd by the client , and making the channel more pro

This commit is contained in:
mochaoui
2024-04-19 11:39:48 -05:00
parent e1ca1fe9a7
commit 7a9f346b8b
3 changed files with 139 additions and 14 deletions

View File

@@ -53,6 +53,7 @@ class Server {
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, int fd);
void smallbroadcastMessagefortheckick(std::string nicknamesender , const std::string& channelname, const std::string& usertokick, const std::string& reason);
int findUserFd1(const std::string& username);
std::string findUsernameforsending(int fd);
bool isOperator(int fd);