diff --git a/ChangeLog b/ChangeLog index 0e251e192..7065eac55 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-08-22 Badlop + + * src/ejabberd_router.erl: Fix call to mnesia match_object + 2008-08-21 Badlop * doc/guide.tex: Fix names of chatroom to room, user to occupant diff --git a/src/ejabberd_router.erl b/src/ejabberd_router.erl index 71c47cd9c..0abb16cc4 100644 --- a/src/ejabberd_router.erl +++ b/src/ejabberd_router.erl @@ -150,9 +150,9 @@ unregister_route(Domain) -> mnesia:transaction(F); _ -> F = fun() -> - case mnesia:match(#route{domain = LDomain, - pid = Pid, - _ = '_'}) of + case mnesia:match_object(#route{domain=LDomain, + pid = Pid, + _ = '_'}) of [R] -> I = R#route.local_hint, mnesia:write(