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 3827
1a65cf808d93
parent 3826
be89be2cab26
child 3828
ccf417c7b5d4

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