mod_ircd: Give stanza handlers a negative priority, to allow mod_iq to process them first.
--- a/mod_ircd/mod_ircd.lua Mon Nov 29 17:58:42 2010 +0000
+++ b/mod_ircd/mod_ircd.lua Thu Dec 02 16:23:22 2010 +0500
@@ -176,15 +176,15 @@
irc_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(module.host, function() end); -- COMPAT Prosody 0.7
prosody.events.add_handler("server-stopping", function (shutdown)