prosody

changeset 1789
23a66fdf541e
parent 1622
1ca7a247d04f
child 1790
f06688f9b6c6
--- a/prosody	Fri Sep 18 02:48:52 2009 +0100
+++ b/prosody	Sat Sep 19 11:17:30 2009 +0100
@@ -93,6 +93,12 @@
 
 	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()

mercurial