summaryrefslogtreecommitdiff
path: root/src/jlib.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/jlib.erl')
-rw-r--r--src/jlib.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jlib.erl b/src/jlib.erl
index 62910a12..e450b80b 100644
--- a/src/jlib.erl
+++ b/src/jlib.erl
@@ -20,6 +20,7 @@
string_to_jid/1,
jid_to_string/1,
tolower/1,
+ jid_tolower/1,
get_iq_namespace/1,
iq_query_info/1,
is_iq_request_type/1,
@@ -179,6 +180,8 @@ tolower(S) ->
lists:map(fun tolower_c/1, S).
+jid_tolower({U, S, R}) ->
+ {tolower(U), tolower(S), R}.
get_iq_namespace({xmlelement, Name, Attrs, Els}) when Name == "iq" ->
case xml:remove_cdata(Els) of