diff options
author | matthew <devnull@localhost> | 2008-08-22 21:09:04 +0000 |
---|---|---|
committer | matthew <devnull@localhost> | 2008-08-22 21:09:04 +0000 |
commit | d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4 (patch) | |
tree | 7582e73a42b4becdfb964269bfaee8ab3a16317c /core/rostermanager.lua | |
download | prosody-d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4.tar.gz prosody-d0a4f8f2fb4b0927a67ebc7428d6c5cb66d2fbd4.zip |
First commit, where do you want to go tomorrow?
Diffstat (limited to 'core/rostermanager.lua')
-rw-r--r-- | core/rostermanager.lua | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua new file mode 100644 index 00000000..7a1e7d4e --- /dev/null +++ b/core/rostermanager.lua @@ -0,0 +1,19 @@ + +local mainlog = log; +local function log(type, message) + mainlog(type, "rostermanager", message); +end + +local setmetatable = setmetatable; +local format = string.format; +local loadfile, setfenv, pcall = loadfile, setfenv, pcall; + +require "util.datamanager" + +local datamanager = datamanager; + +module "rostermanager" + +function getroster(username, host) + return datamanager.load(username, host, "roster") or {}; +end |