summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.cpp
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-07 19:01:49 +0200
committerlouiz’ <louiz@louiz.org>2017-04-07 19:01:49 +0200
commitbe9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea (patch)
tree7b3c18d8c0b6a1b0f5c3a56a44cb7ed3b2ff2739 /src/bridge/bridge.cpp
parentb82a14f20effad351cd2b1f344d526202ef11caf (diff)
downloadbiboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.gz
biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.bz2
biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.tar.xz
biboumi-be9c577de840c7f0dc08b9f5b9ba9bd522d0e2ea.zip
Apply all the clang-tidy performance-* fixes
Diffstat (limited to 'src/bridge/bridge.cpp')
-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 4966b0d..591e947 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -988,16 +988,16 @@ void Bridge::send_room_history(const std::string& hostname, const std::string& c
this->send_room_history(hostname, chan_name, resource);
}
-void Bridge::send_room_history(const std::string& hostname, const std::string& chan_name, const std::string& resource)
+void Bridge::send_room_history(const std::string& hostname, std::string chan_name, const std::string& resource)
{
#ifdef USE_DATABASE
const auto coptions = Database::get_irc_channel_options_with_server_and_global_default(this->user_jid, hostname, chan_name);
const auto lines = Database::get_muc_logs(this->user_jid, chan_name, hostname, coptions.maxHistoryLength.value());
+ chan_name.append(utils::empty_if_fixed_server("%" + hostname));
for (const auto& line: lines)
{
const auto seconds = line.date.value().timeStamp();
- this->xmpp.send_history_message(chan_name + utils::empty_if_fixed_server("%" + hostname), line.nick.value(),
- line.body.value(),
+ this->xmpp.send_history_message(chan_name, line.nick.value(), line.body.value(),
this->user_jid + "/" + resource, seconds);
}
#endif