From 4c48bdc07291f55d7320721a5b0a29c092f7daa0 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 11 Mar 2017 01:25:45 +0100 Subject: Improve Plugin API (allow to move encryption into plugin) --- xmpp-vala/src/module/util.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xmpp-vala/src/module') 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]; } -- cgit v1.2.3-70-g09d2