3 -- Copyright (C) 2019 Marcos de Vera Piquero <marcos.devera@quobis.com>
5 -- This file is MIT/X11 licensed.
7 -- A module to discard hinted messages with no-store at mod_offline
10 module
:depends
"offline";
12 local function handle_offline (event
)
13 local stanza
= event
.stanza
;
14 if (stanza
:get_child("no-store", "urn:xmpp:hints") or
15 stanza
:get_child("no-permanent-store", "urn:xmpp:hints")) then
16 module
:log("debug", "Not storing offline stanza: %s (urn:xmpp:hints)", stanza
);
22 module
:hook("message/offline/handle", handle_offline
);
24 module
:log("debug", "Module loaded");