diff options
author | matthew <matthew@silver> | 2008-08-24 18:01:20 +0100 |
---|---|---|
committer | matthew <matthew@silver> | 2008-08-24 18:01:20 +0100 |
commit | 5ea14b62950a6a9cbdc96c7354afddcf637d9d41 (patch) | |
tree | 1285f7cc14c92306dab94b104648dd1747812069 /core/offlinemessage.lua | |
download | prosody-5ea14b62950a6a9cbdc96c7354afddcf637d9d41.tar.gz prosody-5ea14b62950a6a9cbdc96c7354afddcf637d9d41.zip |
Added all the files to please hg :/
Diffstat (limited to 'core/offlinemessage.lua')
-rw-r--r-- | core/offlinemessage.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/core/offlinemessage.lua b/core/offlinemessage.lua new file mode 100644 index 00000000..dda9b7d8 --- /dev/null +++ b/core/offlinemessage.lua @@ -0,0 +1,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 |