Software /
code /
prosody
Diff
core/rostermanager.lua @ 5:57e4eb3aeac0
Added all the files to please hg :/
author | matthew@silver |
---|---|
date | Sun, 24 Aug 2008 18:01:20 +0100 |
child | 6:7ad47ce20394 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/rostermanager.lua Sun Aug 24 18:01:20 2008 +0100 @@ -0,0 +1,26 @@ + +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