25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-26 16:26:24 +01:00

API renaming : bare_jid_to_jid -> full

SVN Revision: 2121
This commit is contained in:
Karim Gemayel 2009-06-01 16:34:38 +00:00
parent 5dbc4f9954
commit a136192db2
5 changed files with 7 additions and 7 deletions

View File

@ -465,7 +465,7 @@ do_route(From, To, Packet) ->
fun({_, R}) ->
do_route(
From,
exmpp_jid:bare_jid_to_jid(To, R),
exmpp_jid:full(To, R),
Packet)
end, PResources);
true ->
@ -479,7 +479,7 @@ do_route(From, To, Packet) ->
lists:foreach(
fun(R) ->
do_route(From,
exmpp_jid:bare_jid_to_jid(To, R),
exmpp_jid:full(To, R),
Packet)
end, get_user_resources(exmpp_jid:lnode(To),
exmpp_jid:ldomain(To)));

View File

@ -304,7 +304,7 @@ get_user_resources(BareJID) ->
#xmlel{ns = ?NS_DISCO_ITEMS, name = 'item', attrs =
[?XMLATTR('jid',
exmpp_jid:jid_to_binary(
exmpp_jid:bare_jid_to_jid(BareJID, R))),
exmpp_jid:full(BareJID, R))),
?XMLATTR('name',
exmpp_jid:lnode(BareJID))]}
end, lists:sort(Rs)).
@ -1677,7 +1677,7 @@ set_form(From, Host, ?NS_ADMINL("user-stats"), Lang, XData) ->
Resources = ejabberd_sm:get_user_resources(exmpp_jid:lnode(JID),
exmpp_jid:ldomain(JID)),
IPs1 = [ejabberd_sm:get_user_ip(exmpp_jid:bare_jid_to_jid(JID,Resource))
IPs1 = [ejabberd_sm:get_user_ip(exmpp_jid:full(JID,Resource))
|| Resource <- Resources],
IPs = [inet_parse:ntoa(IP)++":"++integer_to_list(Port) || {IP, Port} <- IPs1],

View File

@ -397,7 +397,7 @@ get_user_resources(JID) ->
lists:map(fun(R) ->
#xmlel{ns = ?NS_DISCO_ITEMS, name = 'item', attrs = [
?XMLATTR('jid',
exmpp_jid:jid_to_binary(exmpp_jid:bare_jid_to_jid(JID, R))),
exmpp_jid:jid_to_binary(exmpp_jid:full(JID, R))),
?XMLATTR('name', exmpp_jid:lnode(JID))
]}
end, lists:sort(Rs)).

View File

@ -174,7 +174,7 @@ do_client_version(disabled, _From, _To) ->
do_client_version(enabled, From, To) ->
%% It is important to identify this process and packet
Random_resource = integer_to_list(random:uniform(100000)),
From2 = exmpp_jid:bare_jid_to_jid(From,Random_resource),
From2 = exmpp_jid:full(From,Random_resource),
%% Build an iq:query request
Request = #xmlel{ns = ?NS_SOFT_VERSION, name = 'query'},

View File

@ -3533,7 +3533,7 @@ tab_count_user(JID) ->
jid_replace_resource(JID, Resource) ->
exmpp_jid:bare_jid_to_jid(JID, Resource).
exmpp_jid:full(JID, Resource).