plugins/mod_offline.lua

changeset 3972
a05cf5d9c7ab
parent 3971
faace741d0f9
child 3973
f5416372350d
equal deleted inserted replaced
3971:faace741d0f9 3972:a05cf5d9c7ab
13 local ipairs = ipairs; 13 local ipairs = ipairs;
14 local jid_split = require "util.jid".split; 14 local jid_split = require "util.jid".split;
15 15
16 module:add_feature("msgoffline"); 16 module:add_feature("msgoffline");
17 17
18 module:hook("message/offline/store", function(event) 18 module:hook("message/offline/handle", function(event)
19 local origin, stanza = event.origin, event.stanza; 19 local origin, stanza = event.origin, event.stanza;
20 local to = stanza.attr.to; 20 local to = stanza.attr.to;
21 local node, host; 21 local node, host;
22 if to then 22 if to then
23 node, host = jid_split(to) 23 node, host = jid_split(to)

mercurial