aboutsummaryrefslogtreecommitdiffstats
path: root/core/rostermanager.lua
blob: 7a1e7d4eb5e2a727304948b9dfbe839ffc51706f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19

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 datamanager.load(username, host, "roster") or {};
end