diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 21:48:28 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-11-10 21:48:28 +0500 |
commit | 9b8fcd736fe50722e89cc02c47b8f1d34a4b314d (patch) | |
tree | 49959fa7a475f48828692937b2e32d6116d77e5d /core/componentmanager.lua | |
parent | ce98a648ffeb0912544fa5b06c6007ab98822170 (diff) | |
download | prosody-9b8fcd736fe50722e89cc02c47b8f1d34a4b314d.tar.gz prosody-9b8fcd736fe50722e89cc02c47b8f1d34a4b314d.zip |
componentmanager: Removed.
Diffstat (limited to 'core/componentmanager.lua')
-rw-r--r-- | core/componentmanager.lua | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua deleted file mode 100644 index de783db0..00000000 --- a/core/componentmanager.lua +++ /dev/null @@ -1,36 +0,0 @@ --- Prosody IM --- Copyright (C) 2008-2010 Matthew Wild --- Copyright (C) 2008-2010 Waqas Hussain --- --- This project is MIT/X11 licensed. Please see the --- COPYING file in the source package for more information. --- - -local log = require "util.logger".init("componentmanager"); -local prosody, hosts = prosody, prosody.hosts; - -local components = {}; - -module "componentmanager" - -function register_component(host, component) - if hosts[host] and hosts[host].type == 'component' then - components[host] = component; - log("debug", "component added: "..host); - return hosts[host]; - else - log("error", "Attempt to set component for existing host: "..host); - end -end - -function deregister_component(host) - if components[host] then - components[host] = nil; - log("debug", "component removed: "..host); - return true; - else - log("error", "Attempt to remove component for non-existing host: "..host); - end -end - -return _M; |