the mode -i and +i about join dooooooone and work as expected

This commit is contained in:
mochaoui
2024-04-21 09:44:14 -05:00
parent 9f8a61dbe5
commit a8b3f537c2
3 changed files with 107 additions and 20 deletions

View File

@@ -105,6 +105,17 @@ public:
return false; // File descriptor not found in the map
}
bool isInvited(std::string nickname) {
// Iterate through the map of operators
for (std::map<std::string, int>::iterator it = invitedUsers.begin(); it != invitedUsers.end(); ++it) {
// Check if the file descriptor matches
if (it->first == nickname) {
return true; // Found the file descriptor in the map
}
}
return false; // File descriptor not found in the map
}
int findUserFdForKickRegulars(const std::string& username) {