Mercurial > prosody-hg
comparison plugins/mod_carbons.lua @ 7718:c58075c4d375
mod_message, mod_carbons: Adjust event hook priorities to negative (core modules should do this to make overriding from other modules easier)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 17 Nov 2016 22:38:46 +0100 |
| parents | edacd0bef0e8 |
| children | 63f50a84318f |
comparison
equal
deleted
inserted
replaced
| 7716:779a9ef6b4fd | 7718:c58075c4d375 |
|---|---|
| 98 local function c2s_message_handler(event) | 98 local function c2s_message_handler(event) |
| 99 return message_handler(event, true) | 99 return message_handler(event, true) |
| 100 end | 100 end |
| 101 | 101 |
| 102 -- Stanzas sent by local clients | 102 -- Stanzas sent by local clients |
| 103 module:hook("pre-message/host", c2s_message_handler, 1); | 103 module:hook("pre-message/host", c2s_message_handler, -0.5); |
| 104 module:hook("pre-message/bare", c2s_message_handler, 1); | 104 module:hook("pre-message/bare", c2s_message_handler, -0.5); |
| 105 module:hook("pre-message/full", c2s_message_handler, 1); | 105 module:hook("pre-message/full", c2s_message_handler, -0.5); |
| 106 -- Stanzas to local clients | 106 -- Stanzas to local clients |
| 107 module:hook("message/bare", message_handler, 1); | 107 module:hook("message/bare", message_handler, -0.5); |
| 108 module:hook("message/full", message_handler, 1); | 108 module:hook("message/full", message_handler, -0.5); |
| 109 | 109 |
| 110 module:add_feature(xmlns_carbons); | 110 module:add_feature(xmlns_carbons); |
