]> granicus.if.org Git - ejabberd/commitdiff
* src/ejabberd_router.erl: Now filter_packet hook works in
authorAlexey Shchepin <alexey@process-one.net>
Mon, 14 Aug 2006 19:46:14 +0000 (19:46 +0000)
committerAlexey Shchepin <alexey@process-one.net>
Mon, 14 Aug 2006 19:46:14 +0000 (19:46 +0000)
'global' context

SVN Revision: 594

ChangeLog
src/ejabberd_router.erl

index af7e76ce40ea0677ce6729ab45aea640e12c669a..9dcc25a238ea34f1701de8c2b7a692cc940628f6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-08-14  Alexey Shchepin  <alexey@sevcom.net>
+
+       * src/ejabberd_router.erl: Now filter_packet hook works in
+       'global' context
+
 2006-08-04  Alexey Shchepin  <alexey@sevcom.net>
 
        * src/tls/tls_drv.c: Report OpenSSL error messages (thanks to
index 20f0c998c68ebc22eee59d461c304294520e9728..5e3127f9f17ea6d8ee464081db0653f5225d4432 100644 (file)
@@ -221,7 +221,7 @@ 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(filter_packet, LOrigDstDomain,
+    case ejabberd_hooks:run_fold(filter_packet,
                                 {OrigFrom, OrigTo, OrigPacket}, []) of
        {From, To, Packet} ->
            LDstDomain = To#jid.lserver,