From 437c9d07f55811d75ca624ac18c6dc30c86e90ce Mon Sep 17 00:00:00 2001 From: Karim Gemayel Date: Mon, 1 Jun 2009 17:00:44 +0000 Subject: [PATCH] API renaming : bare_jid_to_binary -> bare_to_binary SVN Revision: 2135 --- src/mod_caps.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mod_caps.erl b/src/mod_caps.erl index bc567b669..218d3ba1a 100644 --- a/src/mod_caps.erl +++ b/src/mod_caps.erl @@ -121,14 +121,14 @@ get_caps({U, S, R}, Retry) -> clear_caps(JID) -> R = exmpp_jid:prep_resource(JID), BJID = exmpp_jid:to_binary(JID), - BUID = exmpp_jid:bare_jid_to_binary(JID), + BUID = exmpp_jid:bare_to_binary(JID), catch mnesia:dirty_delete({user_caps, BJID}), catch mnesia:dirty_delete_object(#user_caps_resources{uid = BUID, resource = list_to_binary(R)}), ok. %% give default user resource get_user_resources(U, S) -> - BUID = exmpp_jid:bare_jid_to_binary(U, S), + BUID = exmpp_jid:bare_to_binary(U, S), case catch mnesia:dirty_read({user_caps_resources, BUID}) of {'EXIT', _} -> []; @@ -323,7 +323,7 @@ handle_cast({note_caps, From, case ejabberd_sm:get_user_resources(U, S) of [] -> % only store resource of caps aware external contacts - BUID = exmpp_jid:bare_jid_to_binary(From), + BUID = exmpp_jid:bare_to_binary(From), mnesia:dirty_write(#user_caps_resources{uid = BUID, resource = list_to_binary(R)}); _ -> ok