Add methods to know which resource is on which server or channel

This commit is contained in:
louiz’
2016-06-08 01:42:43 +02:00
parent 367de4826c
commit 711861d40e
4 changed files with 48 additions and 7 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ public:
* Returns the bridge for the given user. If it does not exist, return
* nullptr.
*/
Bridge* find_user_bridge(const std::string& user_jid);
Bridge* find_user_bridge(const std::string& full_jid);
/**
* Return a list of all the managed bridges.
*/
@@ -97,7 +97,7 @@ private:
std::map<std::string, iq_responder_callback_t> waiting_iq;
/**
* One bridge for each user of the component. Indexed by the user's full
* One bridge for each user of the component. Indexed by the user's bare
* jid
*/
std::unordered_map<std::string, std::unique_ptr<Bridge>> bridges;