summaryrefslogtreecommitdiff
path: root/src/bridge/bridge.cpp
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2015-09-18 21:58:05 +0200
committerFlorent Le Coz <louiz@louiz.org>2015-09-18 22:09:26 +0200
commitf1de6d032091bd141e12e8345969495d6f23c3e6 (patch)
tree2ffa00d5c1f8f77a1ffb08c0ab459e5d55f7efb9 /src/bridge/bridge.cpp
parent1031989fe26f219ccb4b9a602a599e30f18cb9d2 (diff)
downloadbiboumi-f1de6d032091bd141e12e8345969495d6f23c3e6.tar.gz
biboumi-f1de6d032091bd141e12e8345969495d6f23c3e6.tar.bz2
biboumi-f1de6d032091bd141e12e8345969495d6f23c3e6.tar.xz
biboumi-f1de6d032091bd141e12e8345969495d6f23c3e6.zip
Add Bridge::get_bare_jid
Diffstat (limited to 'src/bridge/bridge.cpp')
-rw-r--r--src/bridge/bridge.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bridge/bridge.cpp b/src/bridge/bridge.cpp
index 1d46e07..ba70069 100644
--- a/src/bridge/bridge.cpp
+++ b/src/bridge/bridge.cpp
@@ -74,6 +74,12 @@ const std::string& Bridge::get_jid() const
return this->user_jid;
}
+std::string Bridge::get_bare_jid() const
+{
+ Jid jid(this->user_jid);
+ return jid.local + "@" + jid.domain;
+}
+
Xmpp::body Bridge::make_xmpp_body(const std::string& str)
{
std::string res;