mode -o done

This commit is contained in:
mochaoui
2024-04-20 11:31:23 -05:00
parent a1103a37be
commit 52e093f725
2 changed files with 45 additions and 0 deletions

View File

@@ -142,6 +142,19 @@ std::string getOperatorNickname(int fd) const {
return ""; // Return empty string if operator not found
}
void removeOperator(const std::string& operatorName )
{
// Iterate through the map to find the operator
std::map<std::string, int>::iterator it;
for (it = operators.begin(); it != operators.end(); ++it) {
if (it->first == operatorName) {
// Erase the operator from the map
operators.erase(it);
return; // Exit the function after removing the operator
}
}
}
// Remove an operator from the channel
};