aboutsummaryrefslogtreecommitdiffstats
path: root/core/rostermanager.lua
diff options
context:
space:
mode:
authormatthew <matthew@silver>2008-08-24 18:01:20 +0100
committermatthew <matthew@silver>2008-08-24 18:01:20 +0100
commit5ea14b62950a6a9cbdc96c7354afddcf637d9d41 (patch)
tree1285f7cc14c92306dab94b104648dd1747812069 /core/rostermanager.lua
downloadprosody-5ea14b62950a6a9cbdc96c7354afddcf637d9d41.tar.gz
prosody-5ea14b62950a6a9cbdc96c7354afddcf637d9d41.zip
Added all the files to please hg :/
Diffstat (limited to 'core/rostermanager.lua')
-rw-r--r--core/rostermanager.lua26
1 files changed, 26 insertions, 0 deletions
diff --git a/core/rostermanager.lua b/core/rostermanager.lua
new file mode 100644
index 00000000..b31ca21b
--- /dev/null
+++ b/core/rostermanager.lua
@@ -0,0 +1,26 @@
+
+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 {
+ ["mattj@localhost"] = true,
+ ["tobias@getjabber.ath.cx"] = true,
+ ["waqas@getjabber.ath.cx"] = true,
+ ["thorns@getjabber.ath.cx"] = true,
+ ["idw@getjabber.ath.cx"] = true,
+ }
+-- return datamanager.load(username, host, "roster") or {};
+end