mirror of
https://github.com/processone/ejabberd.git
synced 2025-01-01 17:53:00 +01:00
Renamed route_packet hook to filter_packet
SVN Revision: 381
This commit is contained in:
parent
e9e1893b01
commit
9da4594fd0
@ -1,6 +1,6 @@
|
|||||||
2005-07-27 Alexey Shchepin <alexey@sevcom.net>
|
2005-07-27 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
* src/ejabberd_router.erl: Added route_packet hook
|
* src/ejabberd_router.erl: Added filter_packet hook
|
||||||
|
|
||||||
2005-07-26 Alexey Shchepin <alexey@sevcom.net>
|
2005-07-26 Alexey Shchepin <alexey@sevcom.net>
|
||||||
|
|
||||||
|
@ -84,8 +84,8 @@ do_route(OrigFrom, OrigTo, OrigPacket) ->
|
|||||||
?DEBUG("route~n\tfrom ~p~n\tto ~p~n\tpacket ~p~n",
|
?DEBUG("route~n\tfrom ~p~n\tto ~p~n\tpacket ~p~n",
|
||||||
[OrigFrom, OrigTo, OrigPacket]),
|
[OrigFrom, OrigTo, OrigPacket]),
|
||||||
LOrigDstDomain = OrigTo#jid.lserver,
|
LOrigDstDomain = OrigTo#jid.lserver,
|
||||||
case ejabberd_hooks:run_fold(
|
case ejabberd_hooks:run_fold(filter_packet, LOrigDstDomain,
|
||||||
route_packet, LOrigDstDomain, {OrigFrom, OrigTo, OrigPacket}, []) of
|
{OrigFrom, OrigTo, OrigPacket}, []) of
|
||||||
{From, To, Packet} ->
|
{From, To, Packet} ->
|
||||||
LDstDomain = To#jid.lserver,
|
LDstDomain = To#jid.lserver,
|
||||||
case mnesia:dirty_read(route, LDstDomain) of
|
case mnesia:dirty_read(route, LDstDomain) of
|
||||||
|
Loading…
Reference in New Issue
Block a user