Software /
code /
prosody
Changeset
4037:5262d3eb7f01
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
author | Robert Hoelz <rob@hoelz.ro> |
---|---|
date | Thu, 09 Dec 2010 12:28:05 -0600 |
parents | 4036:32b55f06a3bd |
children | 4038:1bd93c6ac3bd |
files | plugins/mod_offline.lua plugins/mod_presence.lua |
diffstat | 2 files changed, 1 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_offline.lua Thu Dec 09 12:23:37 2010 -0600 +++ b/plugins/mod_offline.lua Thu Dec 09 12:28:05 2010 -0600 @@ -47,13 +47,7 @@ stanza.attr.stamp, stanza.attr.stamp_legacy = nil, nil; origin.send(stanza); end + datamanager.list_store(node, host, "offline", nil); return true; end end); - -module:hook("message/offline/delete", function(event) - local origin = event.origin; - local node, host = origin.username, origin.host; - - return datamanager.list_store(node, host, "offline", nil); -end);
--- a/plugins/mod_presence.lua Thu Dec 09 12:23:37 2010 -0600 +++ b/plugins/mod_presence.lua Thu Dec 09 12:28:05 2010 -0600 @@ -117,7 +117,6 @@ if priority >= 0 then local event = { origin = origin } module:fire_event('message/offline/broadcast', event); - module:fire_event('message/offline/delete', event); end end if stanza.attr.type == "unavailable" then