prosody: Added a stub implementation of core.componentmanager to the package.loaded table.
authorWaqas Hussain <waqas20@gmail.com>
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
--- 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"