author | Waqas Hussain <waqas20@gmail.com> |
Wed, 08 Oct 2008 21:10:18 +0500 | |
changeset 80 | 523ac742cc19 |
parent 6 | 7ad47ce20394 |
child 101 | c690fa382743 |
permissions | -rw-r--r-- |
0 | 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) |
|
3 | 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 {}; |
|
0 | 26 |
end |
80
523ac742cc19
Fixed: rostermanager.lua now returns the module
Waqas Hussain <waqas20@gmail.com>
parents:
6
diff
changeset
|
27 |
|
523ac742cc19
Fixed: rostermanager.lua now returns the module
Waqas Hussain <waqas20@gmail.com>
parents:
6
diff
changeset
|
28 |
return _M; |