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:
parent
c31f99937f
commit
1b94c7a8b3
|
@ -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 ->
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user