Software /
code /
prosody
Changeset
4137:7b0f6c94b8df
Merge 0.8->trunk.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 03 Feb 2011 13:18:20 +0500 |
parents | 4134:3a6fedc80bcf (current diff) 4136:19f2830fbe02 (diff) |
children | 4138:62f5e6b11571 |
files | |
diffstat | 2 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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 });