Comparison

core/rostermanager.lua @ 3:f674eb704134

"Shared roster" - well, kind of :) + TODO
author matthew
date Sun, 24 Aug 2008 13:29:01 +0000
parent 0:3e3171b59028
child 6:7ad47ce20394
comparison
equal deleted inserted replaced
2:9bb397205f26 3:f674eb704134
13 local datamanager = datamanager; 13 local datamanager = datamanager;
14 14
15 module "rostermanager" 15 module "rostermanager"
16 16
17 function getroster(username, host) 17 function getroster(username, host)
18 return datamanager.load(username, host, "roster") or {}; 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 {};
19 end 26 end