Software /
code /
prosody
Diff
core/configmanager.lua @ 1615:0e3eacf135f2
configmanager: Default options appearing before Host "*" to global (fixes potential traceback)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 28 Jul 2009 18:02:11 +0100 |
parent | 1523:841d61be198f |
child | 1777:de86734d3f7f |
line wrap: on
line diff
--- a/core/configmanager.lua Tue Jul 28 17:43:46 2009 +0100 +++ b/core/configmanager.lua Tue Jul 28 18:02:11 2009 +0100 @@ -113,6 +113,7 @@ set(env.__currenthost or "*", "core", k, v); end}); + rawset(env, "__currenthost", "*") -- Default is global function env.Host(name) rawset(env, "__currenthost", name); -- Needs at least one setting to logically exist :)