diff options
author | Marvin W <git@larma.de> | 2017-03-11 01:25:45 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2017-03-11 02:04:38 +0100 |
commit | 4c48bdc07291f55d7320721a5b0a29c092f7daa0 (patch) | |
tree | 2b7debd52adbbf25ebceb2721014e5dc6c61679f /xmpp-vala | |
parent | 1ccad732b9a783d8f0140373602b7c1b84d04198 (diff) | |
download | dino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.tar.gz dino-4c48bdc07291f55d7320721a5b0a29c092f7daa0.zip |
Improve Plugin API (allow to move encryption into plugin)
Diffstat (limited to 'xmpp-vala')
-rw-r--r-- | xmpp-vala/src/module/util.vala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmpp-vala/src/module/util.vala b/xmpp-vala/src/module/util.vala index 65a9b261..7051307a 100644 --- a/xmpp-vala/src/module/util.vala +++ b/xmpp-vala/src/module/util.vala @@ -1,13 +1,13 @@ namespace Xmpp { - string? get_bare_jid(string jid) { + public string? get_bare_jid(string jid) { return jid.split("/")[0]; } - bool is_bare_jid(string jid) { + public bool is_bare_jid(string jid) { return !jid.contains("/"); } - string? get_resource_part(string jid) { + public string? get_resource_part(string jid) { return jid.split("/")[1]; } |