Software /
code /
prosody
Changeset
11199:6c7c50a4de32 0.11
mod_pubsub: Lower priority of default <body> generator
in order to avoid conflict with a handler at the default (0) priority,
making it easier to write your own formatting in plugins.
this follows the common pattern of default modules having lower priority
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 Nov 2020 22:27:17 +0100 |
parents | 11189:0ff148362a3d |
children | 11200:bf8f2da84007 11201:4ae1d485a9c6 |
files | plugins/mod_pubsub/mod_pubsub.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_pubsub/mod_pubsub.lua Wed Oct 28 14:21:09 2020 +0000 +++ b/plugins/mod_pubsub/mod_pubsub.lua Thu Nov 05 22:27:17 2020 +0100 @@ -127,7 +127,7 @@ end end return summary; -end); +end, -1); module:hook("iq/host/"..xmlns_pubsub..":pubsub", handle_pubsub_iq); module:hook("iq/host/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq);