Thu, 27 Nov 2008 03:12:12 +0000
Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store.
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 return _M;