Commit 03feb403 authored by louiz’'s avatar louiz’
Browse files

Send the iq requests to one random resource instead of the bare JID

parent 81f8f45b
......@@ -739,7 +739,9 @@ void Bridge::send_affiliation_role_change(const Iid& iid, const std::string& tar
void Bridge::send_iq_version_request(const std::string& nick, const std::string& hostname)
this->xmpp.send_iq_version_request(nick + "!" + utils::empty_if_fixed_server(hostname), this->user_jid);
const auto resources = this->resources_in_server[hostname];
if (resources.begin() != resources.end())
this->xmpp.send_iq_version_request(nick + "!" + utils::empty_if_fixed_server(hostname), this->user_jid + "/" + *resources.begin());
void Bridge::send_xmpp_ping_request(const std::string& nick, const std::string& hostname,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment