# HG changeset patch # User Matthew Wild # Date 1253787385 -3600 # Node ID 1c0bde3db7d8791db8e87cc1d35643bd5d46062f # Parent 3bb0e5170692a8acdeff7271e158ccc01086b5a7# Parent e2f0c514d039582780e45832d7b9bc8be100ab7a Merge with 0.5 diff -r 3bb0e5170692 -r 1c0bde3db7d8 .hgtags --- a/.hgtags Mon Sep 21 14:46:12 2009 +0100 +++ b/.hgtags Thu Sep 24 11:16:25 2009 +0100 @@ -28,3 +28,7 @@ 06030af44faddd7d3c20e7d380bb55b92b079c5f 0.5.0 a63ff2fbba8d0a29503e7552a29fc7c831faa23c 0.5.1 cea841708dd462c7634df68e84429402f6cdf71d 0.5.2 +cea841708dd462c7634df68e84429402f6cdf71d 0.5.2 +7c45ae42923a1ef03406e481af2a4a6f356361b8 0.5.2 +7c45ae42923a1ef03406e481af2a4a6f356361b8 0.5.2 +e32593074602a785d152f9e153825f29db4d0973 0.5.2 diff -r 3bb0e5170692 -r 1c0bde3db7d8 net/dns.lua --- a/net/dns.lua Mon Sep 21 14:46:12 2009 +0100 +++ b/net/dns.lua Thu Sep 24 11:16:25 2009 +0100 @@ -507,8 +507,8 @@ local resolv_conf = io.open("/etc/resolv.conf"); if resolv_conf then for line in resolv_conf:lines() do - local address = string.match (line, 'nameserver%s+(%d+%.%d+%.%d+%.%d+)') - if address then self:addnameserver (address) end + local address = string.match (line, '^%s*nameserver%s+(%d+%.%d+%.%d+%.%d+)') + if address then self:addnameserver (address) end end elseif os.getenv("WINDIR") then self:addnameserver ("208.67.222.222") diff -r 3bb0e5170692 -r 1c0bde3db7d8 plugins/mod_httpserver.lua --- a/plugins/mod_httpserver.lua Mon Sep 21 14:46:12 2009 +0100 +++ b/plugins/mod_httpserver.lua Thu Sep 24 11:16:25 2009 +0100 @@ -12,7 +12,7 @@ local open = io.open; local t_concat = table.concat; -local http_base = "www_files"; +local http_base = config.get("*", "core", "http_path") or "www_files"; local response_400 = { status = "400 Bad Request", body = "

Bad Request

Sorry, we didn't understand your request :(" }; local response_404 = { status = "404 Not Found", body = "

Page Not Found

Sorry, we couldn't find what you were looking for :(" }; diff -r 3bb0e5170692 -r 1c0bde3db7d8 plugins/mod_welcome.lua diff -r 3bb0e5170692 -r 1c0bde3db7d8 prosody.cfg.lua.dist --- a/prosody.cfg.lua.dist Mon Sep 21 14:46:12 2009 +0100 +++ b/prosody.cfg.lua.dist Thu Sep 24 11:16:25 2009 +0100 @@ -32,6 +32,12 @@ -- Server-wide settings go in this section Host "*" + -- This is a (by default, empty) list of accounts that are admins + -- for the server. Note that you must create the accounts separately + -- (see http://prosody.im/doc/creating_accounts for info) + -- Example: admins = { "user1@example.com", "user2@example.net" } + admins = { } + -- This is the list of modules Prosody will load on startup. -- It looks for mod_modulename.lua in the plugins folder, so make sure that exists too. modules_enabled = {