aboutsummaryrefslogtreecommitdiffstats
path: root/core/configmanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-07-28 18:02:11 +0100
committerMatthew Wild <mwild1@gmail.com>2009-07-28 18:02:11 +0100
commit57f4a5c837c5039eee6edd83d9516bca9a82c9d0 (patch)
treec1d7a244bc4f0ed138aa3ed34151c81146b5844d /core/configmanager.lua
parent08391171c3d3f104cd1bc7e855936b04870e81e1 (diff)
downloadprosody-57f4a5c837c5039eee6edd83d9516bca9a82c9d0.tar.gz
prosody-57f4a5c837c5039eee6edd83d9516bca9a82c9d0.zip
configmanager: Default options appearing before Host "*" to global (fixes potential traceback)
Diffstat (limited to 'core/configmanager.lua')
-rw-r--r--core/configmanager.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/configmanager.lua b/core/configmanager.lua
index 7fc6aa13..b7ee605f 100644
--- a/core/configmanager.lua
+++ b/core/configmanager.lua
@@ -113,6 +113,7 @@ do
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 :)