2 require "util.datamanager"
4 local datamanager = datamanager;
5 local t_insert = table.insert;
7 module "offlinemessage"
9 function new(user, host, stanza)
10 local offlinedata = datamanager.load(user, host, "offlinemsg") or {};
11 t_insert(offlinedata, stanza);
12 return datamanager.store(user, host, "offlinemsg", offlinedata);