Software /
code /
prosody
Diff
util/datamanager.lua @ 2328:2804d81206d8
util.datamanager: Store data stores with no host in '_global' folder
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 06 Dec 2009 00:35:06 +0000 |
parent | 2159:2ef4458b23d9 |
child | 2444:267d6482bac6 |
line wrap: on
line diff
--- 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