summaryrefslogtreecommitdiff
path: root/louloulibs
diff options
context:
space:
mode:
Diffstat (limited to 'louloulibs')
-rw-r--r--louloulibs/xmpp/jid.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/louloulibs/xmpp/jid.hpp b/louloulibs/xmpp/jid.hpp
index b6975a2..e2ee586 100644
--- a/louloulibs/xmpp/jid.hpp
+++ b/louloulibs/xmpp/jid.hpp
@@ -15,6 +15,15 @@ public:
std::string local;
std::string resource;
+ std::string bare() const
+ {
+ return this->local + "@" + this->domain;
+ }
+ std::string full() const
+ {
+ return this->local + "@" + this->domain + "/" + this->resource;
+ }
+
private:
Jid(const Jid&) = delete;
Jid(Jid&&) = delete;