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

@@ -141,6 +141,17 @@ public:
}
}
}
std::string getOperatorNickname(int fd) const {
std::map<std::string, int>::const_iterator it;
for (it = operators.begin(); it != operators.end(); ++it) {
if (it->second == fd) {
return it->first;
}
}
return ""; // Return empty string if operator not found
}
// Remove an operator from the channel
};