Changeset

3705:ddbac8737c2d

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 3704:320738c67100
children 3706:b758e4ad30a0
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"