Mercurial > prosody-hg
view core/offlinemessage.lua @ 38:3fdfd6e0cb4e
SASL!
(but before you get too excited, no resource binding yet. And yes, there are still plenty of rough edges to the code...)
((eg. must move <stream:features> out of xmlhandlers.lua o_O ))
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 02 Oct 2008 01:08:58 +0100 |
| parents | 3e3171b59028 |
| children | 0f119bece309 |
line wrap: on
line source
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
