net.httpserver: Allow overriding default request handler
[prosody.git] / core / configmanager.lua
index 77cfd575548e794a88432a6636d4fc7d79b4b9a9..b7ee605fcdb5bfb1cb6328eab5c7aa51b592b7aa 100644 (file)
@@ -1,4 +1,4 @@
--- Prosody IM v0.4
+-- Prosody IM
 -- Copyright (C) 2008-2009 Matthew Wild
 -- Copyright (C) 2008-2009 Waqas Hussain
 -- 
@@ -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 :)