Add Bridge::get_bare_jid
This commit is contained in:
@@ -74,6 +74,12 @@ const std::string& Bridge::get_jid() const
|
|||||||
return this->user_jid;
|
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)
|
Xmpp::body Bridge::make_xmpp_body(const std::string& str)
|
||||||
{
|
{
|
||||||
std::string res;
|
std::string res;
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ public:
|
|||||||
* Return the jid of the XMPP user using this bridge
|
* Return the jid of the XMPP user using this bridge
|
||||||
*/
|
*/
|
||||||
const std::string& get_jid() const;
|
const std::string& get_jid() const;
|
||||||
|
std::string get_bare_jid() const;
|
||||||
|
|
||||||
static Xmpp::body make_xmpp_body(const std::string& str);
|
static Xmpp::body make_xmpp_body(const std::string& str);
|
||||||
/***
|
/***
|
||||||
|
|||||||
Reference in New Issue
Block a user