prosody: Added a stub implementation of core.componentmanager to the package.loaded...
authorWaqas Hussain <waqas20@gmail.com>
Wed, 10 Nov 2010 16:47:39 +0000 (21:47 +0500)
committerWaqas Hussain <waqas20@gmail.com>
Wed, 10 Nov 2010 16:47:39 +0000 (21:47 +0500)
prosody

diff --git a/prosody b/prosody
index 65fb16321e906aea4b95903fd6ac8b234d2e8328..fdfee2b439f51b99380202facb6a4ab2c0caef53 100755 (executable)
--- a/prosody
+++ b/prosody
@@ -310,6 +310,10 @@ function load_secondary_libraries()
        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"