Software /
code /
prosody
Diff
util/datamanager.lua @ 5243:07e8256efcda
util.datamanager: Remove dead code path
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 14 Dec 2012 14:21:32 +0100 |
parent | 5153:688aeac0012a |
child | 5244:775d98184acf |
line wrap: on
line diff
--- a/util/datamanager.lua Tue Dec 11 23:40:30 2012 +0100 +++ b/util/datamanager.lua Fri Dec 14 14:21:32 2012 +0100 @@ -113,12 +113,9 @@ if username then if create then mkdir(mkdir(mkdir(data_path).."/"..host).."/"..datastore); end return format("%s/%s/%s/%s.%s", data_path, host, datastore, username, ext); - elseif host then + else if create then mkdir(mkdir(data_path).."/"..host); end return format("%s/%s/%s.%s", data_path, host, datastore, ext); - else - if create then mkdir(data_path); end - return format("%s/%s.%s", data_path, datastore, ext); end end