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 | f60a52f7131ceaba2f1baaa87f12a0ff8004b1ba (patch) | |
tree | 9a3b9f073241015f5eb25acc219f26061777d73c /plugins | |
parent | 7bfadb35ede2969b0e286191346d60dc5b4fab40 (diff) | |
download | prosody-f60a52f7131ceaba2f1baaa87f12a0ff8004b1ba.tar.gz prosody-f60a52f7131ceaba2f1baaa87f12a0ff8004b1ba.zip |
mod_presence, mod_offline: Merge message/offline/delete with message/offline/broadcast.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_offline.lua | 8 | ||||
-rw-r--r-- | plugins/mod_presence.lua | 1 |
2 files changed, 1 insertions, 8 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); diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 933aac62..61239c9a 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -117,7 +117,6 @@ function handle_normal_presence(origin, stanza) 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 |