Software /
code /
prosody
File
core/rostermanager.lua @ 7:dcc5ac721c20
- Remove some debugging code
- Don't allow stanzas to be sent before successful auth (needs further review)
- Make init_xmlhandlers local
- Fix indentation in main.lua
- Fix disconnect logic (it broke if client disconnected before auth, etc.)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 24 Aug 2008 22:48:27 +0100 |
parent | 6:7ad47ce20394 |
child | 80:523ac742cc19 |
line wrap: on
line source
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