summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-08-03 11:46:13 +0200
committerlouiz’ <louiz@louiz.org>2016-08-03 11:46:13 +0200
commitf0a25ccda4526f5132b459e7e6a48ea08733fb79 (patch)
treefac92e378d02acafe5b9e2add6a0d722de2272d9 /src/bridge
parent3fbe01bb30a38111ce058ff78b517234280c0a09 (diff)
downloadbiboumi-f0a25ccda4526f5132b459e7e6a48ea08733fb79.tar.gz
biboumi-f0a25ccda4526f5132b459e7e6a48ea08733fb79.tar.bz2
biboumi-f0a25ccda4526f5132b459e7e6a48ea08733fb79.tar.xz
biboumi-f0a25ccda4526f5132b459e7e6a48ea08733fb79.zip
Lower case the nick, when forwarding a version or ping request
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 edf1700..17d3ec6 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -741,7 +741,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(nick + "!" + utils::empty_if_fixed_server(hostname), this->user_jid + "/" + *resources.begin());
+ this->xmpp.send_iq_version_request(utils::tolower(nick) + "!" + utils::empty_if_fixed_server(hostname), this->user_jid + "/" + *resources.begin());
}
void Bridge::send_xmpp_ping_request(const std::string& nick, const std::string& hostname,
@@ -753,7 +753,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(nick + "!" + utils::empty_if_fixed_server(hostname), this->user_jid + "/" + *resources.begin(), utils::revstr(id));
+ this->xmpp.send_ping_request(utils::tolower(nick) + "!" + utils::empty_if_fixed_server(hostname), this->user_jid + "/" + *resources.begin(), utils::revstr(id));
}
void Bridge::set_preferred_from_jid(const std::string& nick, const std::string& full_jid)