# HG changeset patch # User Waqas Hussain # Date 1296721100 -18000 # Node ID 7b0f6c94b8df0681260748f247ed7229d5e7a96e # Parent 3a6fedc80bcf9d21c5a79484307eb262317fbc6e# Parent 19f2830fbe0249708db39a1867e5b69c5720f339 Merge 0.8->trunk. diff -r 3a6fedc80bcf -r 7b0f6c94b8df core/modulemanager.lua --- a/core/modulemanager.lua Tue Feb 01 02:32:07 2011 +0000 +++ b/core/modulemanager.lua Thu Feb 03 13:18:20 2011 +0500 @@ -68,12 +68,11 @@ if host_modules_enabled == global_modules_enabled then host_modules_enabled = nil; end if host_modules_disabled == global_modules_disabled then host_modules_disabled = nil; end - local host_modules = set.new(host_modules_enabled) - set.new(host_modules_disabled); local global_modules = set.new(autoload_modules) + set.new(global_modules_enabled) - set.new(global_modules_disabled); if component then global_modules = set.intersection(set.new(component_inheritable_modules), global_modules); end - local modules = global_modules + host_modules; + local modules = (global_modules + set.new(host_modules_enabled)) - set.new(host_modules_disabled); -- COMPAT w/ pre 0.8 if modules:contains("console") then diff -r 3a6fedc80bcf -r 7b0f6c94b8df util/stanza.lua --- a/util/stanza.lua Tue Feb 01 02:32:07 2011 +0000 +++ b/util/stanza.lua Thu Feb 03 13:18:20 2011 +0500 @@ -44,11 +44,13 @@ stanza_mt = { __type = "stanza" }; stanza_mt.__index = stanza_mt; +local stanza_mt = stanza_mt; function stanza(name, attr) local stanza = { name = name, attr = attr or {}, tags = {} }; return setmetatable(stanza, stanza_mt); end +local stanza = stanza; function stanza_mt:query(xmlns) return self:tag("query", { xmlns = xmlns });