diff options
author | Karim Gemayel <kgemayel@process-one.net> | 2009-06-01 20:50:36 +0400 |
---|---|---|
committer | Karim Gemayel <kgemayel@process-one.net> | 2009-06-01 20:50:36 +0400 |
commit | 1b94c7a8b3487c20db6afd09c8466df2f4f0b758 (patch) | |
tree | 11280f569b61cc11cb6f25fca02a4c94a1a0f5fd | |
parent | c31f99937f420a6e8e33c8a21a1b5a45f5761c0a (diff) |
API renaming : compare_bare_jids -> bare_compare
SVN Revision: 2130
-rw-r--r-- | src/ejabberd_c2s.erl | 2 | ||||
-rw-r--r-- | src/mod_private.erl | 2 | ||||
-rw-r--r-- | src/mod_private_odbc.erl | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/ejabberd_c2s.erl b/src/ejabberd_c2s.erl index c3f2a5e60..8874c441f 100644 --- a/src/ejabberd_c2s.erl +++ b/src/ejabberd_c2s.erl @@ -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 -> diff --git a/src/mod_private.erl b/src/mod_private.erl index 275c693fc..2e62669e3 100644 --- a/src/mod_private.erl +++ b/src/mod_private.erl @@ -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. diff --git a/src/mod_private_odbc.erl b/src/mod_private_odbc.erl index 3c16b5c79..ecd2a4050 100644 --- a/src/mod_private_odbc.erl +++ b/src/mod_private_odbc.erl @@ -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. |