diff options
author | Kim Alvefur <zash@zash.se> | 2016-11-17 22:38:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2016-11-17 22:38:46 +0100 |
commit | a89c193bb2127ba3c7756bfb8a9687ac2f944821 (patch) | |
tree | 312c24599e188b13fee7e047cf2c478c6855d2d7 /plugins/mod_carbons.lua | |
parent | 02919f09518951d7561b8adbb843e88c6fc262ac (diff) | |
download | prosody-a89c193bb2127ba3c7756bfb8a9687ac2f944821.tar.gz prosody-a89c193bb2127ba3c7756bfb8a9687ac2f944821.zip |
mod_message, mod_carbons: Adjust event hook priorities to negative (core modules should do this to make overriding from other modules easier)
Diffstat (limited to 'plugins/mod_carbons.lua')
-rw-r--r-- | plugins/mod_carbons.lua | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/mod_carbons.lua b/plugins/mod_carbons.lua index 4d8175ef..4984b908 100644 --- a/plugins/mod_carbons.lua +++ b/plugins/mod_carbons.lua @@ -100,11 +100,11 @@ local function c2s_message_handler(event) end -- Stanzas sent by local clients -module:hook("pre-message/host", c2s_message_handler, 1); -module:hook("pre-message/bare", c2s_message_handler, 1); -module:hook("pre-message/full", c2s_message_handler, 1); +module:hook("pre-message/host", c2s_message_handler, -0.5); +module:hook("pre-message/bare", c2s_message_handler, -0.5); +module:hook("pre-message/full", c2s_message_handler, -0.5); -- Stanzas to local clients -module:hook("message/bare", message_handler, 1); -module:hook("message/full", message_handler, 1); +module:hook("message/bare", message_handler, -0.5); +module:hook("message/full", message_handler, -0.5); module:add_feature(xmlns_carbons); |