aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_message.lua
diff options
context:
space:
mode:
authorRobert Hoelz <rob@hoelz.ro>2010-12-09 12:23:37 -0600
committerRobert Hoelz <rob@hoelz.ro>2010-12-09 12:23:37 -0600
commit7bfadb35ede2969b0e286191346d60dc5b4fab40 (patch)
tree90347bd84e33c31ba55939ab4ef3fdc5764466a1 /plugins/mod_message.lua
parentc23fedb91f14f5d026651ccb9ebe28c034216c82 (diff)
downloadprosody-7bfadb35ede2969b0e286191346d60dc5b4fab40.tar.gz
prosody-7bfadb35ede2969b0e286191346d60dc5b4fab40.zip
core.offlinemanager, mod_message, mod_presence: Removed core.offlinemanager in favor of mod_offline.
Diffstat (limited to 'plugins/mod_message.lua')
-rw-r--r--plugins/mod_message.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/mod_message.lua b/plugins/mod_message.lua
index e38b60e6..6ac23ab2 100644
--- a/plugins/mod_message.lua
+++ b/plugins/mod_message.lua
@@ -14,7 +14,6 @@ local st = require "util.stanza";
local jid_bare = require "util.jid".bare;
local jid_split = require "util.jid".split;
local user_exists = require "core.usermanager".user_exists;
-local offlinemanager = require "core.offlinemanager";
local t_insert = table.insert;
local function process_to_bare(bare, origin, stanza)
@@ -47,7 +46,11 @@ local function process_to_bare(bare, origin, stanza)
local node, host = jid_split(bare);
if user_exists(node, host) then
-- TODO apply the default privacy list
- offlinemanager.store(node, host, stanza);
+
+ module:fire_event('message/offline/store', {
+ origin = origin,
+ stanza = stanza,
+ });
else
origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
end