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 |