diff options
Diffstat (limited to 'Swiften/MUC/MUC.cpp')
-rw-r--r-- | Swiften/MUC/MUC.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Swiften/MUC/MUC.cpp b/Swiften/MUC/MUC.cpp index b8c23cd..68a5a86 100644 --- a/Swiften/MUC/MUC.cpp +++ b/Swiften/MUC/MUC.cpp @@ -208,6 +208,14 @@ void MUC::handleCreationConfigResponse(MUCOwnerPayload::ref /*unused*/, ErrorPay } } +bool MUC::hasOccupant(const std::string& nick) { + return occupants.find(nick) != occupants.end(); +} + +MUCOccupant MUC::getOccupant(const std::string& nick) { + return occupants.find(nick)->second; +} + //FIXME: Recognise Topic changes //TODO: Invites(direct/mediated) |