diff options
author | louiz’ <louiz@louiz.org> | 2018-08-26 17:39:16 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2018-09-29 20:04:42 +0200 |
commit | e560352fcf95ba70891d1a847973160c923fb702 (patch) | |
tree | 714c34103ba77be51e03ba912e8b503a5ce2205f /src/bridge/bridge.hpp | |
parent | bf97478b89b24bbf3a6a92c9137041cf2e987f02 (diff) | |
download | biboumi-e560352fcf95ba70891d1a847973160c923fb702.tar.gz biboumi-e560352fcf95ba70891d1a847973160c923fb702.tar.bz2 biboumi-e560352fcf95ba70891d1a847973160c923fb702.tar.xz biboumi-e560352fcf95ba70891d1a847973160c923fb702.zip |
Force connect to a server when a presence is received on a server JID
Diffstat (limited to 'src/bridge/bridge.hpp')
-rw-r--r-- | src/bridge/bridge.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bridge/bridge.hpp b/src/bridge/bridge.hpp index 5c547ff..a1934bb 100644 --- a/src/bridge/bridge.hpp +++ b/src/bridge/bridge.hpp @@ -97,6 +97,8 @@ public: const std::string& from_jid); void send_irc_channel_list_request(const Iid& iid, const std::string& iq_id, const std::string& to_jid, ResultSetInfo rs_info); + void force_connect_to_server(const std::string& hostname, const std::string& resource); + void unforce_connect_to_server(const std::string& hostname, const std::string& resource); /** * Check if the channel list contains what is needed to answer the RSM request, * if it does, send the iq result. If the list is complete but does not contain @@ -310,6 +312,7 @@ private: public: std::map<ChannelKey, std::set<Resource>> resources_in_chan; std::map<IrcHostname, std::set<Resource>> resources_in_server; + std::map<const IrcClient*, std::set<Resource>> force_connected_resources; private: /** * Manage which resource is in which channel |