24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-18 22:15:20 +02:00

API renaming : compare_bare_jids -> bare_compare

SVN Revision: 2130
This commit is contained in:
Karim Gemayel 2009-06-01 16:50:36 +00:00
parent c31f99937f
commit 1b94c7a8b3
3 changed files with 3 additions and 3 deletions

View File

@ -1923,7 +1923,7 @@ check_from(El, FromJID) ->
case exmpp_jid:prep_resource(JIDEl) of
undefined ->
%% Matching JID: The stanza is ok
case exmpp_jid:compare_bare_jids(JIDEl, FromJID) of
case exmpp_jid:bare_compare(JIDEl, FromJID) of
true ->
El;
false ->

View File

@ -121,7 +121,7 @@ check_domain(From, _To, _IQ_Rec) ->
% the iq can't be directed to another jid
check_user(From, To, _IQ_Rec) ->
case exmpp_jid:compare_bare_jids(From, To) of
case exmpp_jid:bare_compare(From, To) of
true -> ok;
false -> {error, 'forbidden'}
end.

View File

@ -115,7 +115,7 @@ check_domain(From, _To, _IQ_Rec) ->
% the iq can't be directed to another jid
check_user(From, To, _IQ_Rec) ->
case exmpp_jid:compare_bare_jids(From, To) of
case exmpp_jid:bare_compare(From, To) of
true -> ok;
false -> {error, 'forbidden'}
end.