core/rostermanager.lua

Thu, 09 Oct 2008 20:28:39 +0100

author
Matthew Wild <mwild1@gmail.com>
date
Thu, 09 Oct 2008 20:28:39 +0100
changeset 92
0261260cf9a7
parent 80
523ac742cc19
child 101
c690fa382743
permissions
-rw-r--r--

Updated pull script for new repo


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

return _M;

mercurial