From 9da4594fd0d8728f5056ccfb87026b685bb6190f Mon Sep 17 00:00:00 2001 From: Alexey Shchepin Date: Wed, 27 Jul 2005 00:59:35 +0000 Subject: [PATCH] Renamed route_packet hook to filter_packet SVN Revision: 381 --- ChangeLog | 2 +- src/ejabberd_router.erl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index bc1a2e4d1..44b25e0d2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ 2005-07-27 Alexey Shchepin - * src/ejabberd_router.erl: Added route_packet hook + * src/ejabberd_router.erl: Added filter_packet hook 2005-07-26 Alexey Shchepin diff --git a/src/ejabberd_router.erl b/src/ejabberd_router.erl index 95c8f6749..4fd85f2c9 100644 --- a/src/ejabberd_router.erl +++ b/src/ejabberd_router.erl @@ -84,8 +84,8 @@ do_route(OrigFrom, OrigTo, OrigPacket) -> ?DEBUG("route~n\tfrom ~p~n\tto ~p~n\tpacket ~p~n", [OrigFrom, OrigTo, OrigPacket]), LOrigDstDomain = OrigTo#jid.lserver, - case ejabberd_hooks:run_fold( - route_packet, LOrigDstDomain, {OrigFrom, OrigTo, OrigPacket}, []) of + case ejabberd_hooks:run_fold(filter_packet, LOrigDstDomain, + {OrigFrom, OrigTo, OrigPacket}, []) of {From, To, Packet} -> LDstDomain = To#jid.lserver, case mnesia:dirty_read(route, LDstDomain) of