96 prosody.platform = "unknown"; |
96 prosody.platform = "unknown"; |
97 if os.getenv("WINDIR") then |
97 if os.getenv("WINDIR") then |
98 prosody.platform = "windows"; |
98 prosody.platform = "windows"; |
99 elseif package.config:sub(1,1) == "/" then |
99 elseif package.config:sub(1,1) == "/" then |
100 prosody.platform = "posix"; |
100 prosody.platform = "posix"; |
|
101 end |
|
102 |
|
103 prosody.installed = nil; |
|
104 if CFG_SOURCEDIR and (prosody.platform == "windows" or CFG_SOURCEDIR:match("^/")) then |
|
105 prosody.installed = true; |
101 end |
106 end |
102 |
107 |
103 -- Function to reload the config file |
108 -- Function to reload the config file |
104 function prosody.reload_config() |
109 function prosody.reload_config() |
105 log("info", "Reloading configuration file"); |
110 log("info", "Reloading configuration file"); |