Mercurial > prosody-hg
view core/rostermanager.lua @ 55:4edb942e9dff
Some notes of the stanza and session structures
| author | Waqas Hussain <waqas20@gmail.com> |
|---|---|
| date | Sat, 04 Oct 2008 19:32:02 +0500 |
| parents | 7ad47ce20394 |
| children | 523ac742cc19 |
line wrap: on
line source
local mainlog = log; local function log(type, message) mainlog(type, "rostermanager", message); end local setmetatable = setmetatable; local format = string.format; local loadfile, setfenv, pcall = loadfile, setfenv, pcall; require "util.datamanager" local datamanager = datamanager; module "rostermanager" function getroster(username, host) return { ["mattj@localhost"] = true, ["tobias@getjabber.ath.cx"] = true, ["waqas@getjabber.ath.cx"] = true, ["thorns@getjabber.ath.cx"] = true, ["idw@getjabber.ath.cx"] = true, } -- return datamanager.load(username, host, "roster") or {}; end
