util/datamanager.lua

changeset 2326
2804d81206d8
parent 2157
2ef4458b23d9
child 2444
267d6482bac6
--- a/util/datamanager.lua	Sat Dec 05 13:34:45 2009 +0000
+++ b/util/datamanager.lua	Sun Dec 06 00:35:06 2009 +0000
@@ -88,7 +88,7 @@
 
 function getpath(username, host, datastore, ext, create)
 	ext = ext or "dat";
-	host = host and encode(host);
+	host = (host and encode(host)) or "_global";
 	username = username and encode(username);
 	if username then
 		if create then mkdir(mkdir(mkdir(data_path).."/"..host).."/"..datastore); end

mercurial