Mark messages from the IRC server as private and no-copy

fix #3284
This commit is contained in:
louiz’
2017-08-30 16:14:35 +02:00
parent 98227db6ad
commit dabc48b79b
2 changed files with 12 additions and 4 deletions
+2 -2
View File
@@ -934,9 +934,9 @@ void Bridge::send_xmpp_message(const std::string& from, const std::string& autho
for (const auto& resource: this->resources_in_server[from])
{
if (Config::get("fixed_irc_server", "").empty())
this->xmpp.send_message(from, this->make_xmpp_body(body, encoding), this->user_jid + "/" + resource, "chat", false, false);
this->xmpp.send_message(from, this->make_xmpp_body(body, encoding), this->user_jid + "/" + resource, "chat", false, true);
else
this->xmpp.send_message("", this->make_xmpp_body(body, encoding), this->user_jid + "/" + resource, "chat", false, false);
this->xmpp.send_message("", this->make_xmpp_body(body, encoding), this->user_jid + "/" + resource, "chat", false, true);
}
}