diff options
-rwxr-xr-x | prosody | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -93,6 +93,12 @@ function init_global_state() prosody.events = require "util.events".new(); + prosody.platform = "unknown"; + if os.getenv("WINDIR") then + prosody.platform = "windows"; + elseif package.config:sub(1,1) == "/" then + prosody.platform = "posix"; + end -- Function to reload the config file function prosody.reload_config() |