Annotate

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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
1
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
2 local mainlog = log;
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
3 local function log(type, message)
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
4 mainlog(type, "rostermanager", message);
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
5 end
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
6
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
7 local setmetatable = setmetatable;
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
8 local format = string.format;
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
9 local loadfile, setfenv, pcall = loadfile, setfenv, pcall;
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
10
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
11 require "util.datamanager"
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
12
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
13 local datamanager = datamanager;
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
14
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
15 module "rostermanager"
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
16
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
17 function getroster(username, host)
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
18 return {
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
19 ["mattj@localhost"] = true,
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
20 ["tobias@getjabber.ath.cx"] = true,
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
21 ["waqas@getjabber.ath.cx"] = true,
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
22 ["thorns@getjabber.ath.cx"] = true,
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
23 ["idw@getjabber.ath.cx"] = true,
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
24 }
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
25 -- return datamanager.load(username, host, "roster") or {};
57e4eb3aeac0 Added all the files to please hg :/
matthew@silver
parents:
diff changeset
26 end