Mercurial > prosody-hg
view core/offlinemessage.lua @ 151:096c7b9374fc
Presence fixes (again)
- Presence to other resources sent correctly
- Resource of the recipient ignored for all presence except available and unavailable
- Set things up for presence subscriptions
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Fri, 24 Oct 2008 00:26:01 +0500 |
| parents | 0f119bece309 |
| children | cccd610a0ef9 |
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 return _M;
