core/rostermanager.lua

Sun, 24 Aug 2008 13:29:01 +0000

author
matthew
date
Sun, 24 Aug 2008 13:29:01 +0000
changeset 3
f674eb704134
parent 0
3e3171b59028
child 6
7ad47ce20394
permissions
-rw-r--r--

"Shared roster" - well, kind of :)
+ TODO


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

mercurial