Software /
code /
prosody-modules
Diff
mod_tcpproxy/mod_tcpproxy.lua @ 283:10c3f6c6a04c
mod_tcpproxy: Give stanza handlers a negative priority, to allow mod_iq to process them first.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 02 Dec 2010 16:23:45 +0500 |
parent | 277:07c1c3eaf0c4 |
child | 1343:7dbde05b48a9 |
line wrap: on
line diff
--- a/mod_tcpproxy/mod_tcpproxy.lua Thu Dec 02 16:23:22 2010 +0500 +++ b/mod_tcpproxy/mod_tcpproxy.lua Thu Dec 02 16:23:45 2010 +0500 @@ -108,14 +108,14 @@ proxy_component(event.origin, event.stanza); return true; end -module:hook("iq/bare", stanza_handler); -module:hook("message/bare", stanza_handler); -module:hook("presence/bare", stanza_handler); -module:hook("iq/full", stanza_handler); -module:hook("message/full", stanza_handler); -module:hook("presence/full", stanza_handler); -module:hook("iq/host", stanza_handler); -module:hook("message/host", stanza_handler); -module:hook("presence/host", stanza_handler); +module:hook("iq/bare", stanza_handler, -1); +module:hook("message/bare", stanza_handler, -1); +module:hook("presence/bare", stanza_handler, -1); +module:hook("iq/full", stanza_handler, -1); +module:hook("message/full", stanza_handler, -1); +module:hook("presence/full", stanza_handler, -1); +module:hook("iq/host", stanza_handler, -1); +module:hook("message/host", stanza_handler, -1); +module:hook("presence/host", stanza_handler, -1); require "core.componentmanager".register_component(host, function() end); -- COMPAT Prosody 0.7