summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-10-11 00:43:46 +0200
committerlouiz’ <louiz@louiz.org>2016-10-11 00:43:46 +0200
commitdfc0793ef2fec12d2613b53b27f1a7f85dae2688 (patch)
treee1e2d8fbb3464cc5a90ff0d846dabc038c81391e /src/bridge
parent548e4ad473e7be22f971184312cc5ce9b8fe56b7 (diff)
downloadbiboumi-dfc0793ef2fec12d2613b53b27f1a7f85dae2688.tar.gz
biboumi-dfc0793ef2fec12d2613b53b27f1a7f85dae2688.tar.bz2
biboumi-dfc0793ef2fec12d2613b53b27f1a7f85dae2688.tar.xz
biboumi-dfc0793ef2fec12d2613b53b27f1a7f85dae2688.zip
Include a private and no-copy nodes in private <message/> to avoid carbon duplication
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index ab42876..9300d45 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -771,13 +771,13 @@ void Bridge::send_message(const Iid& iid, const std::string& nick, const std::st
const auto chan_name = Iid(Jid(it->second).local, {}).get_local();
for (const auto& resource: this->resources_in_chan[ChannelKey{chan_name, iid.get_server()}])
this->xmpp.send_message(it->second, this->make_xmpp_body(body, encoding),
- this->user_jid + "/" + resource, "chat", true);
+ this->user_jid + "/" + resource, "chat", true, true);
}
else
{
for (const auto& resource: this->resources_in_server[iid.get_server()])
this->xmpp.send_message(std::to_string(iid), this->make_xmpp_body(body, encoding),
- this->user_jid + "/" + resource, "chat", false);
+ this->user_jid + "/" + resource, "chat", false, true);
}
}
}
@@ -835,7 +835,7 @@ void Bridge::send_xmpp_message(const std::string& from, const std::string& autho
const auto encoding = in_encoding_for(*this, {from, this});
for (const auto& resource: this->resources_in_server[from])
{
- this->xmpp.send_message(from, this->make_xmpp_body(body, encoding), this->user_jid + "/" + resource, "chat");
+ this->xmpp.send_message(from, this->make_xmpp_body(body, encoding), this->user_jid + "/" + resource, "chat", false, false);
}
}