plugins/mod_offline.lua

changeset 3971
faace741d0f9
parent 3969
32d4a73901e2
child 3972
a05cf5d9c7ab
equal deleted inserted replaced
3970:0f9ab57a1aee 3971:faace741d0f9
27 27
28 stanza.attr.stamp, stanza.attr.stamp_legacy = datetime.datetime(), datetime.legacy(); 28 stanza.attr.stamp, stanza.attr.stamp_legacy = datetime.datetime(), datetime.legacy();
29 local result = datamanager.list_append(node, host, "offline", st.preserialize(stanza)); 29 local result = datamanager.list_append(node, host, "offline", st.preserialize(stanza));
30 stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil; 30 stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil;
31 31
32 return true; 32 return result;
33 end); 33 end);
34 34
35 module:hook("message/offline/broadcast", function(event) 35 module:hook("message/offline/broadcast", function(event)
36 local origin = event.origin; 36 local origin = event.origin;
37 37

mercurial