Comparison

plugins/mod_blocklist.lua @ 7621:b8c03df6e8ca

mod_blocklist: Mention issue numbers
author Kim Alvefur <zash@zash.se>
date Sat, 20 Aug 2016 17:30:16 +0200
parent 7620:c27c9695d130
child 7771:2b288dab781a
comparison
equal deleted inserted replaced
7620:c27c9695d130 7621:b8c03df6e8ca
300 -- Hook all the events! 300 -- Hook all the events!
301 local prio_in, prio_out = 100, 100; 301 local prio_in, prio_out = 100, 100;
302 module:hook("presence/bare", drop_stanza, prio_in); 302 module:hook("presence/bare", drop_stanza, prio_in);
303 module:hook("presence/full", drop_stanza, prio_in); 303 module:hook("presence/full", drop_stanza, prio_in);
304 304
305 -- FIXME See #690
305 module:hook("message/bare", bounce_message, prio_in); 306 module:hook("message/bare", bounce_message, prio_in);
306 module:hook("message/full", bounce_message, prio_in); 307 module:hook("message/full", bounce_message, prio_in);
307 308
308 module:hook("iq/bare", bounce_iq, prio_in); 309 module:hook("iq/bare", bounce_iq, prio_in);
309 module:hook("iq/full", bounce_iq, prio_in); 310 module:hook("iq/full", bounce_iq, prio_in);
310 311
311 module:hook("pre-message/bare", bounce_outgoing, prio_out); 312 module:hook("pre-message/bare", bounce_outgoing, prio_out);
312 module:hook("pre-message/full", bounce_outgoing, prio_out); 313 module:hook("pre-message/full", bounce_outgoing, prio_out);
313 module:hook("pre-message/host", bounce_outgoing, prio_out); 314 module:hook("pre-message/host", bounce_outgoing, prio_out);
314 315
315 -- Note: MUST bounce these, but we don't because this would produce 316 -- FIXME See #575 -- We MUST bounce these, but we don't because this
316 -- lots of error replies due to server-generated presence. 317 -- would produce lots of error replies due to server-generated presence.
317 -- FIXME some day, likely needing changes to mod_presence 318 -- This will likely need changes to mod_presence
318 module:hook("pre-presence/bare", drop_outgoing, prio_out); 319 module:hook("pre-presence/bare", drop_outgoing, prio_out);
319 module:hook("pre-presence/full", drop_outgoing, prio_out); 320 module:hook("pre-presence/full", drop_outgoing, prio_out);
320 module:hook("pre-presence/host", drop_outgoing, prio_out); 321 module:hook("pre-presence/host", drop_outgoing, prio_out);
321 322
322 module:hook("pre-iq/bare", bounce_outgoing, prio_out); 323 module:hook("pre-iq/bare", bounce_outgoing, prio_out);