# HG changeset patch # User Matthew Wild <mwild1@gmail.com> # Date 1260059706 0 # Node ID 2804d81206d8579a1c19c0884d54ae1242541e90 # Parent 265441f2ad48d250b4d699dbb3793f7ffff81667 util.datamanager: Store data stores with no host in '_global' folder diff -r 265441f2ad48 -r 2804d81206d8 util/datamanager.lua --- 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