Software /
code /
prosody
Comparison
core/rostermanager.lua @ 0:3e3171b59028
First commit, where do you want to go tomorrow?
author | matthew |
---|---|
date | Fri, 22 Aug 2008 21:09:04 +0000 |
child | 3:f674eb704134 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:3e3171b59028 |
---|---|
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 datamanager.load(username, host, "roster") or {}; | |
19 end |