From 5ea14b62950a6a9cbdc96c7354afddcf637d9d41 Mon Sep 17 00:00:00 2001 From: matthew Date: Sun, 24 Aug 2008 18:01:20 +0100 Subject: Added all the files to please hg :/ --- core/offlinemessage.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/offlinemessage.lua (limited to 'core/offlinemessage.lua') 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 -- cgit v1.2.3