Fix wrong JID computing when sending iq ping or version in fixed mode
fix #3259
This commit is contained in:
@@ -1048,7 +1048,7 @@ void Bridge::send_iq_version_request(const std::string& nick, const std::string&
|
||||
{
|
||||
const auto resources = this->resources_in_server[hostname];
|
||||
if (resources.begin() != resources.end())
|
||||
this->xmpp.send_iq_version_request(utils::tolower(nick) + "%" + utils::empty_if_fixed_server(hostname),
|
||||
this->xmpp.send_iq_version_request(utils::tolower(nick) + utils::empty_if_fixed_server("%" + hostname),
|
||||
this->user_jid + "/" + *resources.begin());
|
||||
}
|
||||
|
||||
@@ -1061,7 +1061,7 @@ void Bridge::send_xmpp_ping_request(const std::string& nick, const std::string&
|
||||
// Forward to the first resource (arbitrary, based on the “order” of the std::set) only
|
||||
const auto resources = this->resources_in_server[hostname];
|
||||
if (resources.begin() != resources.end())
|
||||
this->xmpp.send_ping_request(utils::tolower(nick) + "%" + utils::empty_if_fixed_server(hostname),
|
||||
this->xmpp.send_ping_request(utils::tolower(nick) + utils::empty_if_fixed_server("%" + hostname),
|
||||
this->user_jid + "/" + *resources.begin(), utils::revstr(id));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user