blob: dda9b7d878e68086d77c56f8c20608a65f1ea67e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|