prosody: Added a stub implementation of core.componentmanager to the package.loaded table (re-commiting, as this was accidentally removed).

Tue, 07 Dec 2010 22:55:28 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Tue, 07 Dec 2010 22:55:28 +0500
changeset 3705
ddbac8737c2d
parent 3704
320738c67100
child 3706
b758e4ad30a0

prosody: Added a stub implementation of core.componentmanager to the package.loaded table (re-commiting, as this was accidentally removed).

prosody file | annotate | diff | comparison | revisions
--- 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"
 	

mercurial