summaryrefslogtreecommitdiff
path: root/src/jlib.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jlib.erl')
-rw-r--r--src/jlib.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jlib.erl b/src/jlib.erl
index e450b80b..974117fd 100644
--- a/src/jlib.erl
+++ b/src/jlib.erl
@@ -21,6 +21,7 @@
jid_to_string/1,
tolower/1,
jid_tolower/1,
+ jid_remove_resource/1,
get_iq_namespace/1,
iq_query_info/1,
is_iq_request_type/1,
@@ -183,6 +184,9 @@ tolower(S) ->
jid_tolower({U, S, R}) ->
{tolower(U), tolower(S), R}.
+jid_remove_resource({U, S, R}) ->
+ {U, S, ""}.
+
get_iq_namespace({xmlelement, Name, Attrs, Els}) when Name == "iq" ->
case xml:remove_cdata(Els) of
[{xmlelement, Name2, Attrs2, Els2}] ->