Properly set the “from” of the ping results to the correct full JID
This commit is contained in:
@@ -483,8 +483,7 @@ void Bridge::send_irc_user_ping_request(const std::string& irc_hostname, const s
|
||||
const std::string id = body.substr(6, body.size() - 7);
|
||||
if (id != iq_id)
|
||||
return false;
|
||||
Jid jid(from_jid);
|
||||
this->xmpp.send_iq_result(iq_id, to_jid, jid.local);
|
||||
this->xmpp.send_iq_result_full_jid(iq_id, to_jid, from_jid);
|
||||
return true;
|
||||
}
|
||||
if (message.command == "401" && message.arguments[1] == nick)
|
||||
|
||||
@@ -580,8 +580,8 @@ void BiboumiComponent::send_iq_version_request(const std::string& from,
|
||||
}
|
||||
|
||||
void BiboumiComponent::send_ping_request(const std::string& from,
|
||||
const std::string& jid_to,
|
||||
const std::string& id)
|
||||
const std::string& jid_to,
|
||||
const std::string& id)
|
||||
{
|
||||
Stanza iq("iq");
|
||||
iq["type"] = "get";
|
||||
|
||||
Reference in New Issue
Block a user