diff options
author | Robert Hoelz <rob@hoelz.ro> | 2010-12-09 12:28:05 -0600 |
---|---|---|
committer | Robert Hoelz <rob@hoelz.ro> | 2010-12-09 12:28:05 -0600 |
commit | 32c092ae0eb8551cd8fb8f124c0ae723672705f5 (patch) | |
tree | 830f6ec0d41fe98c6590b9f28838613d57888b52 /plugins/mod_offline.lua | |
parent | de4b6ceb3376974f56d80129848d5fd0c0009bd7 (diff) | |
download | prosody-32c092ae0eb8551cd8fb8f124c0ae723672705f5.tar.gz prosody-32c092ae0eb8551cd8fb8f124c0ae723672705f5.zip |
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
Diffstat (limited to 'plugins/mod_offline.lua')
-rw-r--r-- | plugins/mod_offline.lua | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/mod_offline.lua b/plugins/mod_offline.lua index a3ca21d0..f44d16af 100644 --- a/plugins/mod_offline.lua +++ b/plugins/mod_offline.lua @@ -47,13 +47,7 @@ module:hook("message/offline/broadcast", function(event) 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); |