# HG changeset patch # User Waqas Hussain # Date 1291288604 -18000 # Node ID cd3a1ae596b4f9a26cecd8d92bbc2b68a1a48358 # Parent 4b7281c577b9b39670e4fa62f3b9c1d9097e45b4 MUC: Give stanza handlers a negative priority, to allow mod_iq to process them first. diff -r 4b7281c577b9 -r cd3a1ae596b4 plugins/muc/mod_muc.lua --- a/plugins/muc/mod_muc.lua Thu Dec 02 16:15:50 2010 +0500 +++ b/plugins/muc/mod_muc.lua Thu Dec 02 16:16:44 2010 +0500 @@ -151,15 +151,15 @@ handle_to_domain(origin, 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); hosts[module.host].send = function(stanza) -- FIXME do a generic fix if stanza.attr.type == "result" or stanza.attr.type == "error" then