Mercurial > prosody-modules
comparison mod_carbons/mod_carbons.lua @ 2371:b41957bf4fd3
mod_carbons: Adjust event hook priorities to be between mod_message and mod_firewall (see #669)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 17 Nov 2016 23:10:29 +0100 |
| parents | 51beecac93c2 |
| children | 704e4845267b |
comparison
equal
deleted
inserted
replaced
| 2370:5fe483b73fd2 | 2371:b41957bf4fd3 |
|---|---|
| 120 local function c2s_message_handler(event) | 120 local function c2s_message_handler(event) |
| 121 return message_handler(event, true) | 121 return message_handler(event, true) |
| 122 end | 122 end |
| 123 | 123 |
| 124 -- Stanzas sent by local clients | 124 -- Stanzas sent by local clients |
| 125 module:hook("pre-message/host", c2s_message_handler, 1); | 125 module:hook("pre-message/host", c2s_message_handler, 0.05); |
| 126 module:hook("pre-message/bare", c2s_message_handler, 1); | 126 module:hook("pre-message/bare", c2s_message_handler, 0.05); |
| 127 module:hook("pre-message/full", c2s_message_handler, 1); | 127 module:hook("pre-message/full", c2s_message_handler, 0.05); |
| 128 -- Stanzas to local clients | 128 -- Stanzas to local clients |
| 129 module:hook("message/bare", message_handler, 1); | 129 module:hook("message/bare", message_handler, 0.05); |
| 130 module:hook("message/full", message_handler, 1); | 130 module:hook("message/full", message_handler, 0.05); |
| 131 | 131 |
| 132 module:add_feature(xmlns_carbons); | 132 module:add_feature(xmlns_carbons); |
| 133 module:add_feature(xmlns_carbons_old); | 133 module:add_feature(xmlns_carbons_old); |
| 134 if module:get_option_boolean("carbons_v0") then | 134 if module:get_option_boolean("carbons_v0") then |
| 135 module:add_feature(xmlns_carbons_really_old); | 135 module:add_feature(xmlns_carbons_really_old); |
