mirror of https://github.com/bjc/prosody
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
325 B
13 lines
325 B
|
|
require "util.datamanager"
|
|
|
|
local datamanager = datamanager;
|
|
local t_insert = table.insert;
|
|
|
|
module "offlinemessage"
|
|
|
|
function new(user, host, stanza)
|
|
local offlinedata = datamanager.load(user, host, "offlinemsg") or {};
|
|
t_insert(offlinedata, stanza);
|
|
return datamanager.store(user, host, "offlinemsg", offlinedata);
|
|
end
|
|
|