diff --git a/ChangeLog b/ChangeLog index a17316813..fc115fe9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,8 @@ STRINGPREP'd parts, use the new short_prepd_jid/1 and short_prepd_bare_jid/1 functions. + * src/acl.erl: Use the new short_prepd_jid/1 function from jlib. + 2008-08-14 Jean-Sébastien Pédron * translate.erl (ascii_tolower): Accept 'undefined' as a language and diff --git a/src/acl.erl b/src/acl.erl index e65c34c4a..21bacf618 100644 --- a/src/acl.erl +++ b/src/acl.erl @@ -158,7 +158,7 @@ match_acl(ACL, JID, Host) -> all -> true; none -> false; _ -> - {User, Server, Resource} = jlib:short_jid(JID), + {User, Server, Resource} = jlib:short_prepd_jid(JID), lists:any(fun(#acl{aclspec = Spec}) -> case Spec of all ->