5
|
1
|
|
2 local mainlog = log;
|
|
3 local function log(type, message)
|
|
4 mainlog(type, "rostermanager", message);
|
|
5 end
|
|
6
|
|
7 local setmetatable = setmetatable;
|
|
8 local format = string.format;
|
|
9 local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
|
|
10
|
|
11 require "util.datamanager"
|
|
12
|
|
13 local datamanager = datamanager;
|
|
14
|
|
15 module "rostermanager"
|
|
16
|
|
17 function getroster(username, host)
|
|
18 return {
|
|
19 ["mattj@localhost"] = true,
|
|
20 ["tobias@getjabber.ath.cx"] = true,
|
|
21 ["waqas@getjabber.ath.cx"] = true,
|
|
22 ["thorns@getjabber.ath.cx"] = true,
|
|
23 ["idw@getjabber.ath.cx"] = true,
|
|
24 }
|
|
25 -- return datamanager.load(username, host, "roster") or {};
|
|
26 end
|