Commit 80789c2e authored by louiz’'s avatar louiz’

send_iq_result can have a "from" with just the domain name

parent 4a8bcd3c
......@@ -1128,7 +1128,10 @@ void XmppComponent::send_ping_request(const std::string& from,
void XmppComponent::send_iq_result(const std::string& id, const std::string& to_jid, const std::string& from_local_part)
Stanza iq("iq");
if (!from_local_part.empty())
iq["from"] = from_local_part + "@" + this->served_hostname;
iq["from"] = this->served_hostname;
iq["to"] = to_jid;
iq["id"] = id;
iq["type"] = "result";
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