Software / code / prosody
Comparison
plugins/mod_offline.lua @ 3971:faace741d0f9
mod_offline: Make sure mod_offline's store handler reports success vs failure.
| author | Robert Hoelz <rob@hoelz.ro> |
|---|---|
| date | Thu, 09 Dec 2010 12:38:33 -0600 |
| parent | 3969:32d4a73901e2 |
| child | 3972:a05cf5d9c7ab |
comparison
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 |