blob: 4d76288352b263bee5339e78c5a90ee28f3af643 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
namespace Xmpp {
string? get_bare_jid(string jid) {
return jid.split("/")[0];
}
bool is_bare_jid(string jid) {
return !jid.contains("/");
}
string? get_resource_part(string jid) {
return jid.split("/")[1];
}
}
|