Software /
code /
prosody
Comparison
plugins/mod_mam/mod_mam.lua @ 7840:92b6aa3ea2ce
mod_mam: Decrease priority to zero
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 18 Nov 2016 10:44:27 +0100 |
parent | 7839:f3e1925f29c2 |
child | 7841:ca3bdb606b1f |
comparison
equal
deleted
inserted
replaced
7839:f3e1925f29c2 | 7840:92b6aa3ea2ce |
---|---|
317 return math.random(cleanup_interval, cleanup_interval * 2); | 317 return math.random(cleanup_interval, cleanup_interval * 2); |
318 end); | 318 end); |
319 end | 319 end |
320 | 320 |
321 -- Stanzas sent by local clients | 321 -- Stanzas sent by local clients |
322 module:hook("pre-message/bare", c2s_message_handler, 2); | 322 module:hook("pre-message/bare", c2s_message_handler, 0); |
323 module:hook("pre-message/full", c2s_message_handler, 2); | 323 module:hook("pre-message/full", c2s_message_handler, 0); |
324 -- Stanszas to local clients | 324 -- Stanszas to local clients |
325 module:hook("message/bare", message_handler, 2); | 325 module:hook("message/bare", message_handler, 0); |
326 module:hook("message/full", message_handler, 2); | 326 module:hook("message/full", message_handler, 0); |
327 | 327 |
328 module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1 | 328 module:add_feature(xmlns_mam); -- COMPAT with XEP-0313 v 0.1 |
329 | 329 |
330 module:hook("account-disco-info", function(event) | 330 module:hook("account-disco-info", function(event) |
331 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up(); | 331 (event.reply or event.stanza):tag("feature", {var=xmlns_mam}):up(); |