summaryrefslogtreecommitdiff
path: root/src/bridge
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-03-31 16:36:57 +0200
committerlouiz’ <louiz@louiz.org>2018-04-16 00:53:25 +0200
commit39a32d55248808637cee78b9218053306964f7aa (patch)
treec86950675a59c725b2ce04f0d22bd1ddccfa23aa /src/bridge
parent5ef7ba08028065b03d51d1dc70bb35aeb41ae19d (diff)
downloadbiboumi-39a32d55248808637cee78b9218053306964f7aa.tar.gz
biboumi-39a32d55248808637cee78b9218053306964f7aa.tar.bz2
biboumi-39a32d55248808637cee78b9218053306964f7aa.tar.xz
biboumi-39a32d55248808637cee78b9218053306964f7aa.zip
Use jid.bare() instead of manual concatenation
Diffstat (limited to 'src/bridge')
-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 afc8ad3..7f21254 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -103,7 +103,7 @@ const std::string& Bridge::get_jid() const
std::string Bridge::get_bare_jid() const
{
Jid jid(this->user_jid);
- return jid.local + "@" + jid.domain;
+ return jid.bare();
}
Xmpp::body Bridge::make_xmpp_body(const std::string& str, const std::string& encoding)