aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-06 00:35:06 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-06 00:35:06 +0000
commitd930baaa0c9c659f50d493db3991e059b82cc1c3 (patch)
tree0385ebd5e4fd03b9de9e454ddc0c7e21c1f266d5 /util
parent7be6d854c15df979cf2079efe9a282b208d7692d (diff)
downloadprosody-d930baaa0c9c659f50d493db3991e059b82cc1c3.tar.gz
prosody-d930baaa0c9c659f50d493db3991e059b82cc1c3.zip
util.datamanager: Store data stores with no host in '_global' folder
Diffstat (limited to 'util')
-rw-r--r--util/datamanager.lua2
1 files changed, 1 insertions, 1 deletions
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