summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-09-20 19:02:12 +0200
committerlouiz’ <louiz@louiz.org>2016-09-20 19:02:12 +0200
commit93ebf45f3050681f94497aac889d30885a503a68 (patch)
tree39260f7b950e88977679fca46e16358deb849ac3 /src
parentf8112468a7a557db21aa76c3620d55172cb9bdb4 (diff)
downloadbiboumi-93ebf45f3050681f94497aac889d30885a503a68.tar.gz
biboumi-93ebf45f3050681f94497aac889d30885a503a68.tar.bz2
biboumi-93ebf45f3050681f94497aac889d30885a503a68.tar.xz
biboumi-93ebf45f3050681f94497aac889d30885a503a68.zip
Make history messages work with fixed_irc_server
fix #3209
Diffstat (limited to 'src')
-rw-r--r--src/bridge/bridge.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index e24383e..2fc466a 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -764,7 +764,7 @@ void Bridge::send_room_history(const std::string& hostname, const std::string& c
for (const auto& line: lines)
{
const auto seconds = line.date.value().timeStamp();
- this->xmpp.send_history_message(chan_name + "%" + hostname, line.nick.value(), line.body.value(),
+ this->xmpp.send_history_message(chan_name + utils::empty_if_fixed_server("%" + hostname), line.nick.value(), line.body.value(),
this->user_jid + "/" + resource, seconds);
}
#endif