From d930baaa0c9c659f50d493db3991e059b82cc1c3 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 6 Dec 2009 00:35:06 +0000 Subject: util.datamanager: Store data stores with no host in '_global' folder --- util/datamanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/datamanager.lua b/util/datamanager.lua index bfd69ebf..30cd082b 100644 --- a/util/datamanager.lua +++ b/util/datamanager.lua @@ -88,7 +88,7 @@ end 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 -- cgit v1.2.3