summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2017-04-20 00:24:59 +0200
committerlouiz’ <louiz@louiz.org>2017-04-20 00:24:59 +0200
commit727d887d7bc8a17b88402ae63e0569084a24a84d (patch)
tree2635857343407eec98dfabfc61f502dbd05dbca5 /src/bridge
parent4bae383c1ddb762308c99f90625e5ecc885146b3 (diff)
downloadbiboumi-727d887d7bc8a17b88402ae63e0569084a24a84d.tar.gz
biboumi-727d887d7bc8a17b88402ae63e0569084a24a84d.tar.bz2
biboumi-727d887d7bc8a17b88402ae63e0569084a24a84d.tar.xz
biboumi-727d887d7bc8a17b88402ae63e0569084a24a84d.zip
Fix wrong JID computing when sending iq ping or version in fixed mode
fix #3259
Diffstat (limited to 'src/bridge')
-rw-r--r--src/bridge/bridge.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index f263c3f..69e8c35 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -1048,7 +1048,7 @@ void Bridge::send_iq_version_request(const std::string& nick, const std::string&
{
const auto resources = this->resources_in_server[hostname];
if (resources.begin() != resources.end())
- this->xmpp.send_iq_version_request(utils::tolower(nick) + "%" + utils::empty_if_fixed_server(hostname),
+ this->xmpp.send_iq_version_request(utils::tolower(nick) + utils::empty_if_fixed_server("%" + hostname),
this->user_jid + "/" + *resources.begin());
}
@@ -1061,7 +1061,7 @@ void Bridge::send_xmpp_ping_request(const std::string& nick, const std::string&
// Forward to the first resource (arbitrary, based on the “order” of the std::set) only
const auto resources = this->resources_in_server[hostname];
if (resources.begin() != resources.end())
- this->xmpp.send_ping_request(utils::tolower(nick) + "%" + utils::empty_if_fixed_server(hostname),
+ this->xmpp.send_ping_request(utils::tolower(nick) + utils::empty_if_fixed_server("%" + hostname),
this->user_jid + "/" + *resources.begin(), utils::revstr(id));
}