Software / code / prosody
Comparison
plugins/mod_blocklist.lua @ 8741:0fd63ed1f647
mod_blocklist: Allow mod_presence to handle subscription stanzas before bouncing outgoing presence (fixes #575)
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Fri, 06 Apr 2018 22:12:45 +0200 |
| parent | 8275:13dad833e821 |
| child | 9248:1d6a2cc389eb |
comparison
equal
deleted
inserted
replaced
| 8730:de74bc49385e | 8741:0fd63ed1f647 |
|---|---|
| 319 | 319 |
| 320 module:hook("pre-message/bare", bounce_outgoing, prio_out); | 320 module:hook("pre-message/bare", bounce_outgoing, prio_out); |
| 321 module:hook("pre-message/full", bounce_outgoing, prio_out); | 321 module:hook("pre-message/full", bounce_outgoing, prio_out); |
| 322 module:hook("pre-message/host", bounce_outgoing, prio_out); | 322 module:hook("pre-message/host", bounce_outgoing, prio_out); |
| 323 | 323 |
| 324 -- FIXME See #575 -- We MUST bounce these, but we don't because this | 324 module:hook("pre-presence/bare", bounce_outgoing, -1); |
| 325 -- would produce lots of error replies due to server-generated presence. | 325 module:hook("pre-presence/host", bounce_outgoing, -1); |
| 326 -- This will likely need changes to mod_presence | 326 module:hook("pre-presence/full", bounce_outgoing, prio_out); |
| 327 module:hook("pre-presence/bare", drop_outgoing, prio_out); | |
| 328 module:hook("pre-presence/full", drop_outgoing, prio_out); | |
| 329 module:hook("pre-presence/host", drop_outgoing, prio_out); | |
| 330 | 327 |
| 331 module:hook("pre-iq/bare", bounce_outgoing, prio_out); | 328 module:hook("pre-iq/bare", bounce_outgoing, prio_out); |
| 332 module:hook("pre-iq/full", bounce_outgoing, prio_out); | 329 module:hook("pre-iq/full", bounce_outgoing, prio_out); |
| 333 module:hook("pre-iq/host", bounce_outgoing, prio_out); | 330 module:hook("pre-iq/host", bounce_outgoing, prio_out); |
| 334 | 331 |