Mercurial > prosody-hg
comparison core/rostermanager.lua @ 5:57e4eb3aeac0
Added all the files to please hg :/
| author | matthew@silver |
|---|---|
| date | Sun, 24 Aug 2008 18:01:20 +0100 |
| parents | |
| children | 7ad47ce20394 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 5:57e4eb3aeac0 |
|---|---|
| 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 |
