Changeset

3827:1a65cf808d93

prosody: Added a stub implementation of core.componentmanager to the package.loaded table (re-commiting, as this was accidentally removed).
author Waqas Hussain <waqas20@gmail.com>
date Tue, 07 Dec 2010 22:55:28 +0500
parents 3826:be89be2cab26
children 3828:ccf417c7b5d4
files prosody
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/prosody	Mon Dec 06 18:51:45 2010 +0000
+++ b/prosody	Tue Dec 07 22:55:28 2010 +0500
@@ -293,6 +293,10 @@
 	require "core.usermanager"
 	require "core.sessionmanager"
 	require "core.stanza_router"
+	package.loaded['core.componentmanager'] = setmetatable({},{__index=function()
+		log("warn", "componentmanager is deprecated: %s", debug.traceback():match("\n[^\n]*\n[\s\t]*([^\n]*)"));
+		return function() end
+	end});
 
 	require "net.http"