prosody: Added a stub implementation of core.componentmanager to the package.loaded table.

Wed, 10 Nov 2010 21:47:39 +0500

author
Waqas Hussain <waqas20@gmail.com>
date
Wed, 10 Nov 2010 21:47:39 +0500
changeset 3605
b8208f5e612a
parent 3604
3e89f0509967
child 3606
c52b06de9b27

prosody: Added a stub implementation of core.componentmanager to the package.loaded table.

prosody file | annotate | diff | comparison | revisions
--- a/prosody	Wed Nov 10 20:59:16 2010 +0500
+++ b/prosody	Wed Nov 10 21:47:39 2010 +0500
@@ -310,6 +310,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