Changeset

1505:e19cb945c25b

modulemanager: Small code improvement, move autoloaded modules list to the top of the file
author Matthew Wild <mwild1@gmail.com>
date Thu, 09 Jul 2009 14:37:04 +0100
parents 1504:9d8c35e98ca2
children 1506:2c8aa16b4f64
files core/modulemanager.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/modulemanager.lua	Thu Jul 09 14:34:49 2009 +0100
+++ b/core/modulemanager.lua	Thu Jul 09 14:37:04 2009 +0100
@@ -33,6 +33,8 @@
 local error = error;
 local tostring = tostring;
 
+local autoload_modules = {"presence", "message", "iq"};
+
 -- We need this to let modules access the real global namespace
 local _G = _G;
 
@@ -70,7 +72,7 @@
 					disabled_set[module] = true;
 				end
 			end
-			for _, module in ipairs({"presence", "message", "iq"}) do
+			for _, module in ipairs(autoload_modules) do
 				if not disabled_set[module] then
 					load(host, module);
 				end